CVE-2026-49332

Openshift/oauth-proxy: openshift/oauth-proxy: underscore header smuggling enables identity impersonation on wsgi/php upstreams

Published Jul 28, 2026 CVSS 3.1 · 8.5 High EPSS < 1% KEV · Not listed
Description
A flaw was found in openshift/oauth-proxy. The proxy sets authenticated identity headers using only dash-variant keys (X-Forwarded-User) but does not strip underscore-variant keys (X_Forwarded_User) from incoming requests. WSGI and PHP frameworks normalize both variants to the same variable, allowing an authenticated low-privilege user to smuggle a forged identity that may override the legitimate authenticated identity in the upstream application.

Analysis

AI-generated

Technical impact

A flaw in OpenShift’s OAuth proxy causes it to set authenticated identity headers only using the dash‑variant (X-Forwarded-User) but it fails to strip the underscore‑variant (X_Forwarded_User) from client requests. Because WSGI and PHP frameworks normalize both header forms to the same internal variable, a logged‑in user can insert a forged underscore header that overrides the legitimate identity forwarded to the upstream application. The result is the ability to impersonate any other user, granting unauthorized access or privileged actions. The weakness is a classic header injection issue, categorized as CWE-436.

Affected Systems

The vulnerability affects Red Hat OpenShift Container Platform 4. The advisory does not list affected patch levels, so any installation of OpenShift 4 that uses the built‑in oauth-proxy may be susceptible until a proper fix is deployed. The CPE identifier cpe:/a:redhat:openshift:4 confirms the scope.

Risk and Exploitability

The CVSS score of 8.5 indicates a high severity flaw, while the EPSS score of <1% suggests a low probability of exploitation in production environments. The vulnerability is not yet catalogued in CISA’s KEV list. Attackers need only a low‑privilege authenticated session to craft HTTP requests containing the underscore‑variant header; the overwrite occurs only for requests that traverse the OAuth proxy to a downstream WSGI or PHP application, so the risk is limited to that specific traffic. Based on the description, it is inferred that the attacker must target traffic that passes through the OAuth proxy to achieve the identity hijack. Because the attack relies on header normalization, it is relatively easy to automate but can be mitigated by upstream application hardening.

Remediation

Vendor Workaround

Upstream application hardening: validate X-Forwarded-User against the expected session identity. Reject requests where identity headers do not match the authenticated session.


OpenCVE Recommended Actions

  • Apply Red Hat’s workaround by validating the X-Forwarded-User header against the authenticated session identity and rejecting mismatched requests.
  • Upgrade OpenShift to a release that sanitizes or rejects underscore‑variant headers; keep abreast of official Red Hat patches.
  • Configure the upstream WSGI or PHP application to enforce strict header validation or to ignore forged identity headers, ensuring only the authenticated session value is honored.

Generated by OpenCVE AI on August 3, 2026 at 15:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:5
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.17::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4 cpe:/a:redhat:openshift:4.14::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.18::el9
cpe:/a:redhat:openshift:4.19::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.20::el9
cpe:/a:redhat:openshift:4.22::el9
References
Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Vendors & Products Redhat openshift Container Platform
Type Values Removed Values Added
Description A flaw was found in openshift/oauth-proxy. The proxy sets authenticated identity headers using only dash-variant keys (X-Forwarded-User) but does not strip underscore-variant keys (X_Forwarded_User) from incoming requests. WSGI and PHP frameworks normalize both variants to the same variable, allowing an authenticated low-privilege user to smuggle a forged identity that may override the legitimate authenticated identity in the upstream application.
Title Openshift/oauth-proxy: openshift/oauth-proxy: underscore header smuggling enables identity impersonation on wsgi/php upstreams
First Time appeared Redhat
Redhat openshift
Weaknesses CWE-436
CPEs cpe:/a:redhat:openshift:4
Vendors & Products Redhat
Redhat openshift
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 26, 2026, 2:30 PM
Reserved
May 29, 2026, 1:28 PM
Status
Awaiting Analysis
Published
Jul 28, 2026, 1:18 PM
Modified
Nov 26, 2026, 3:17 PM
Severity
Important
Public date
Jul 28, 2026, 12:00 PM