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.
Published: 2026-07-28
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

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 yet.

History

Wed, 12 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.16::el9
References

Wed, 12 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4 cpe:/a:redhat:openshift:4.14::el9
References

Wed, 12 Aug 2026 08:15:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.18::el9
cpe:/a:redhat:openshift:4.19::el9
References

Tue, 11 Aug 2026 10:00:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.20::el9
cpe:/a:redhat:openshift:4.22::el9
References

Tue, 11 Aug 2026 09:15:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.21::el9
References

Wed, 05 Aug 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Vendors & Products Redhat openshift Container Platform

Wed, 29 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Tue, 28 Jul 2026 16:15:00 +0000

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'}


Subscriptions

Redhat Openshift Openshift Container Platform
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-18T05:52:06.392Z

Reserved: 2026-05-29T13:28:56.553Z

Link: CVE-2026-49332

cve-icon Vulnrichment

Updated: 2026-07-28T13:03:03.200Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-28T13:18:46.067

Modified: 2026-08-16T10:16:23.757

Link: CVE-2026-49332

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-28T12:00:00Z

Links: CVE-2026-49332 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T10:00:03Z

Weaknesses