Apache CXF: OAuth2: HTTP Response Splitting via WWW-Authenticate Realm Injection
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in CXF 3.6.12, CXF 4.1.7, CXF 4.2.2 and 3 more.
A CRLF injection vulnerability exists in the OAuth2 AuthorizationUtils class. When constructing the WWW-Authenticate response header, the 'realm' parameter is concatenated without sanitizing Carriage Return (CR) and Line Feed (LF) characters. If an attacker can control the realm value, they can inject arbitrary HTTP headers or split the HTTP response entirely. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fixes this issue.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Apache | CXF | <3.6.12, >=4.0.0 <4.1.7, >=4.2.0 <4.2.2 | 3.6.12, 4.1.7, 4.2.2 |
| Apache Software Foundation | <3.6.12, >=4.0.0 <4.1.7, >=4.2.0 <4.2.2 | 3.6.12, 4.1.7, 4.2.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Apache, strongest first
Embed
A live severity badge for an advisory, README or ticket