CVE-2025-64484
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedOAuth2-Proxy is an open-source tool that can act as either a standalone reverse proxy or a middleware component integrated into existing reverse proxy or load balancer setups. In versions prior to 7.13.0, all deployments of OAuth2 Proxy in front of applications that normalize underscores to dashes in HTTP headers (e.g., WSGI-based frameworks such as Django, Flask, FastAPI, and PHP applications). Authenticated users can inject underscore variants of X-Forwarded-* headers that bypass the proxy’s filtering logic, potentially escalating privileges in the upstream app. OAuth2 Proxy authentication/authorization itself is not compromised. The problem has been patched with v7.13.0. By default all specified headers will now be normalized, meaning that both capitalization and the use of underscores (_) versus dashes (-) will be ignored when matching headers to be stripped. For example, both `X-Forwarded-For` and `X_Forwarded-for` will now be treated as equivalent and stripped away. For those who have a rational that requires keeping a similar looking header and not stripping it, the maintainers introduced a new configuration field for Headers managed through the AlphaConfig called `InsecureSkipHeaderNormalization`. As a workaround, ensure filtering and processing logic in upstream services don't treat underscores and hyphens in Headers the same way.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceOAuth2-Proxy before v7.13.0 fails to strip X-Forwarded-* headers containing underscores, which WSGI frameworks (Django, Flask, FastAPI) and PHP apps normalize to dashes. Authenticated users can inject headers like X_Forwarded-For that bypass the proxy's header filtering, potentially allowing privilege escalation in upstream applications.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify OAuth2-Proxy versionRun 'oauth2-proxy --version' or check the container image/tag version deployed in your environmentAffected if Version is below 7.13.0 (e.g., 7.12.x, 7.11.x, etc.)
-
Confirm OAuth2-Proxy is handling proxy headersInspect the OAuth2-Proxy configuration file (e.g., config.yaml, command-line flags) for flags related to header forwarding such as 'proxy-headers', 'skip-x-forwarded-header-normalization', or review if X-Forwarded-* headers are being passed to upstreamAffected if OAuth2-Proxy is configured to forward X-Forwarded-* headers to upstream applications
-
Identify upstream application typeDetermine what application sits behind OAuth2-Proxy: check if it is a Python WSGI-based app (Django, Flask, FastAPI) or a PHP application by inspecting the application stack or container compositionAffected if The upstream application is a WSGI framework (Django, Flask, FastAPI) or a PHP application that normalizes underscores to dashes in HTTP headers
-
Check header normalization configurationReview OAuth2-Proxy config for 'InsecureSkipHeaderNormalization' or similar settings that control whether underscores are normalized to dashes in incoming headersAffected if Header normalization is disabled or not set to normalize underscores, allowing X_Forwarded_For (with underscores) to pass through OAuth2-Proxy unchanged
You are affected if OAuth2-Proxy version is before 7.13.0 AND it forwards X-Forwarded-* headers to an upstream WSGI (Django/Flask/FastAPI) or PHP application, because underscores in injected headers will be normalized by the upstream app to bypass OAuth2-Proxy's security filter.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade OAuth2-Proxy to v7.13.0 or later, which normalizes headers by default. If legacy behavior is required, set InsecureSkipHeaderNormalization carefully and ensure upstream apps don't treat underscores and hyphens equivalently.
7.13.0
- Upgrade OAuth2-Proxy to version 7.13.0 or later
- Verify that header normalization is working correctly by testing that both underscore (_) and dash (-) variants of X-Forwarded-* headers are being stripped
- If you require preserving specific headers with their original formatting, add the InsecureSkipHeaderNormalization field to your AlphaConfig, but be aware this may reintroduce the vulnerability
- Test your application thoroughly after upgrading to ensure legitimate header handling still works as expected
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-64484 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-64484 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data