CVE-2026-50630
JSON

6.5medium

Apache CXF: OAuth2: HTTP Response Splitting via WWW-Authenticate Realm Injection

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.38% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-xf62-wr5p-5p95

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

Product or packageVersionsReported by
org.apache.cxf:cxf-rt-rs-security-oauth2from 4.2.0 before 4.2.2, from 4.0.0 before 4.1.7, before 3.6.12CVE List
org.apache.cxf:cxf-rt-rs-security-oauth2 (Maven)from 4.2.0 before 4.2.2, before 4.1.7GitHub Advisory Database
apache cxfbefore 3.6.12, from 4.0.0 before 4.1.7, from 4.2.0 before 4.2.2NVD

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-113

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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, which fixes this issue.

NVD (es)

Una vulnerabilidad de inyección CRLF existe en la clase OAuth2 AuthorizationUtils. Al construir el encabezado de respuesta WWW-Authenticate, el parámetro ’realm’ se concatena sin sanear los caracteres de Retorno de Carro (CR) y Salto de Línea (LF). Si un atacante puede controlar el valor ’realm’, pueden inyectar encabezados HTTP arbitrarios o dividir la respuesta HTTP por completo. Se recomienda a los usuarios actualizar a las versiones 4.2.2 o 4.1.7, lo que soluciona este problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-50630 changed 2026-08-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-xf62-wr5p-5p95 changed 2026-08-20CC-BY-4.0
NVDCVE-2026-50630 changed 2026-11-05Public domain