Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache CXF | 4.2.0 – < 4.2.2, 4.0.0 – < 4.1.7, < 3.6.12 | 4.2.2 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.cxf:cxf-rt-rs-security-oauth2 | >= 4.2.0, < 4.2.2 | 4.2.2 | GHSA-xf62-wr5p-5p95 |
| Maven | org.apache.cxf:cxf-rt-rs-security-oauth2 | < 4.1.7 | 4.1.7 | GHSA-xf62-wr5p-5p95 |
Advisories 1
- WID-SEC-2026-1895 Apache CXF: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 3, 2026
References
- https://lists.apache.org/thread/bt7vnjzzkpd6vdhkxv103poor1jy5trm vendor-advisory