VulnerabilityAwaiting classification

CVE-2024-45336

MEDIUM · 6.1 CVSS v3.1 Published 2025-01-28
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
68/100
Remediation priority · Elevated
Remotely reachable No privileges

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
The HTTP client drops sensitive headers after following a cross-domain redirect. For example, a request to a.com/ containing an Authorization header which is redirected to b.com/ will not send that header to b.com. In the event that the client received a subsequent same-domain redirect, however, the sensitive headers would be restored. For example, a chain of redirects from a.com/, to b.com/1, and finally to b.com/2 would incorrectly send the Authorization header to b.com/2.

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

An HTTP client incorrectly restores sensitive headers (like Authorization) after following a cross-domain redirect chain. When a request to a.com with an Auth header redirects to b.com (correctly dropping the header), and then redirects within b.com to b.com/2, the client incorrectly restores and sends the Auth header to the final b.com/2 destination, leaking credentials across domains.

MitigationUpdate the HTTP client to track whether any cross-domain redirect has occurred and permanently drop sensitive headers for the remainder of that redirect chain, preventing restoration on subsequent same-domain redirects.

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
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/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 your HTTP client library
    Determine which HTTP client library or framework your application uses for making HTTP requests. Check your dependencies (e.g., package.json, requirements.txt, pom.xml, go.mod) for the HTTP client package name and version.
    Affected if You are using an HTTP client library that handles redirects and processes sensitive headers like Authorization across redirect chains.
  2. Test cross-domain redirect behavior
    Create a test that sends a request with an Authorization header to domain A, which redirects to domain B, then redirects within domain B. Capture the headers sent to the final destination using a test server or proxy.
    Affected if The Authorization header (or other sensitive headers) is present in the request to the final b.com/2 endpoint after a cross-domain redirect occurred earlier in the chain.
  3. Check redirect header handling logic
    Inspect the HTTP client source code or release notes for the redirect handling implementation, specifically looking for how cross-domain redirects are tracked and how sensitive headers are managed across redirect chains.
    Affected if The code does not track whether a cross-domain redirect has occurred and may restore dropped sensitive headers on subsequent same-domain redirects.
  4. Review version against upstream fixes
    Compare your installed HTTP client version to any upstream security advisories or changelogs that reference CVE-2024-45336 or similar cross-domain header leakage issues.
    Affected if Your HTTP client version predates the fix for CVE-2024-45336 and the library has released a patched version.

You are affected if your HTTP client library handles redirects and incorrectly restores sensitive headers (like Authorization) to the final destination after a cross-domain redirect has occurred earlier in the redirect chain.

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

Update the HTTP client to track whether any cross-domain redirect has occurred and permanently drop sensitive headers for the remainder of that redirect chain, preventing restoration on subsequent same-domain redirects.

Recommended fix Moderate confidence

Go 1.22.8 or later (or the latest stable Go 1.23.x release)

  1. Identify the current version of Go being used by running: go version
  2. Check the official Go release notes at https://go.dev/doc/devel/release for the version containing the fix for CVE-2024-45336
  3. Upgrade to Go 1.22.8 or later (which contains the fix for this vulnerability)
  4. Verify the upgrade was successful by running: go version
  5. Test your application to ensure HTTP redirect behavior works as expected after the upgrade
Caveat Minimal risk; this is a bug fix that corrects incorrect header behavior. However, applications relying on the buggy behavior (which was insecure) may need to be reviewed.

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

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation8.0 h
  • Testing6.0 h
  • Review / QA2.0 h
18.0 hours of engineering $3,100
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,960.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-45336 — 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-2024-45336 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