Vulnerability · Published Jun 12, 2026 · Assigned by apache

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

Medium 6.5

In plain English

A medium-severity security flaw in Apache CXF from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.4%top 68.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.apache.cxf:cxf-rt-rs-security-oauth24.2.2GHSA-xf62-wr5p-5p95
Mavenorg.apache.cxf:cxf-rt-rs-security-oauth24.1.7GHSA-xf62-wr5p-5p95

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache CXF 4.2.0 – before 4.2.24.0.0 – before 4.1.70 – before 3.6.12

Weakness: CWE-113 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References