CWE-644Weakness · CWE-644

CVE-2025-64484

HIGH · 8.5 CVSS v3.1 Published 2025-11-10
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
91/100
Remediation priority · Urgent
Remotely reachable Zero-click

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 · unedited
OAuth2-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 confidence

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

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

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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify OAuth2-Proxy version
    Run 'oauth2-proxy --version' or check the container image/tag version deployed in your environment
    Affected if Version is below 7.13.0 (e.g., 7.12.x, 7.11.x, etc.)
  2. Confirm OAuth2-Proxy is handling proxy headers
    Inspect 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 upstream
    Affected if OAuth2-Proxy is configured to forward X-Forwarded-* headers to upstream applications
  3. Identify upstream application type
    Determine 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 composition
    Affected if The upstream application is a WSGI framework (Django, Flask, FastAPI) or a PHP application that normalizes underscores to dashes in HTTP headers
  4. Check header normalization configuration
    Review OAuth2-Proxy config for 'InsecureSkipHeaderNormalization' or similar settings that control whether underscores are normalized to dashes in incoming headers
    Affected 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

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

Recommended fix High confidence

7.13.0

  1. Upgrade OAuth2-Proxy to version 7.13.0 or later
  2. Verify that header normalization is working correctly by testing that both underscore (_) and dash (-) variants of X-Forwarded-* headers are being stripped
  3. 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
  4. Test your application thoroughly after upgrading to ensure legitimate header handling still works as expected
Caveat The default header normalization behavior treats X-Forwarded-For and X_Forwarded-for as equivalent; this change could affect applications that intentionally rely on distinguishing between underscore and dash header variants

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,130
Get help mitigating

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 locally
dbcve dependency scanner

Check 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-64484 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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