CVE-2026-140330 PUBLISHED

Oauth-proxy: oauth-proxy: authentication bypass via percent-encoded path traversal in skip-auth-regex matching

Assigner: redhat
Reserved: 01.12.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS Score: 7.4

Product Status

Vendor Red Hat
Product Red Hat OpenShift Container Platform 4
Versions Default: unaffected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 4
Versions Default: affected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 5
Versions Default: affected

Workarounds

Remove or tighten -skip-auth-regex / -bypass-auth-for configurations (e.g. require exact-path matching such as ^/metrics$ rather than prefix patterns), or place an additional normalization layer in front of the proxy that rejects percent-encoded traversal sequences.

Credits

  • Red Hat would like to thank Abhishek Raj and Yashashree Gund for reporting this issue.

References

Problem Types

  • Interpretation Conflict CWE