Bug 2571875 (CVE-2026-140330)

Summary: CVE-2026-140330 oauth-proxy: oauth-proxy: authentication bypass via percent-encoded path traversal in skip-auth-regex matching
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: akhatavk, aos-team-art-private, asdas, dpaolell, jdelft, jupierce, lgarciaa, mbiarnes, ppalepu, ppostler, prdhamdh, security-response-team, sghai, sidsharm, suppawar, vlaad
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in oauth-proxy. An unauthenticated remote attacker can bypass authentication to access protected resources by sending a crafted HTTP request containing percent-encoded path traversal sequences. This issue occurs because the proxy evaluates authentication exemption rules against the decoded request path while forwarding the raw, encoded request to the upstream server. When an upstream server resolves these path traversal sequences, unauthorized requests can reach restricted endpoints without requiring authentication.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-11 19:12:14 UTC
A flaw was found in openshift/oauth-proxy. The -skip-auth-regex authentication exemption check matches patterns against the percent-decoded request path (req.URL.Path), while the reverse-proxy director forwards the raw, still-encoded RequestURI to the upstream. An unauthenticated remote attacker can send a request whose path contains a percent-encoded traversal sequence (e.g. /whitelisted/%2e%2e/protected), which matches the skip-auth whitelist on the decoded path but is resolved by traversal-normalizing upstream services (e.g. nginx, which decodes and resolves percent-encoded dot segments by default) to a protected path outside the whitelisted prefix, bypassing authentication and gaining unauthenticated access to resources the operator intended to protect. Exploitation requires the operator to have configured -skip-auth-regex (or its alias -bypass-auth-for) with an anchor-shaped whitelist pattern and an upstream that resolves percent-encoded dot segments; deployments authenticating all paths are unaffected.