CVE-2026-140330

Description

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.

Statement

Red Hat has rated this vulnerability as having an Important security impact because successful exploitation allows an unauthenticated remote attacker to bypass access controls and interact directly with protected backend endpoints. The overall exposure is constrained in standard OpenShift environments because typical deployments authenticate all request paths uniformly. A security compromise is only possible when administrators explicitly enable authorization exemption patterns alongside backend services that normalize URL dot segments.

Mitigation

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.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.4N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityHighN/AN/A
Privileges RequiredNoneN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityHighN/AN/A
Integrity ImpactHighN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Red Hat CVSS v3 Score Explanation

Assessed during PSIRTSUPT-29752 triage. AC:H reflects deployment prerequisites: exploitation requires the operator to have configured -skip-auth-regex with an anchor-shaped whitelist pattern in front of an upstream that resolves percent-encoded dot segments. A stricter purist reading with AC:L scores 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N); AC:H is the headline score, consistent with the analogous CVE-2025-54576 (High).

Understanding the Weakness (CWE)

Integrity,Other

Technical Impact: Unexpected State; Varies by Context

Acknowledgements

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

Frequently Asked Questions

Want to get errata notifications? Sign up here.