Skip to main content
No exploitation reportedFix available

CVE-2024-37891

No exploitation reported by the sources we read.

  • Published2024-06-17
  • Fixed in2.2.2 · 1.26.19
  • WeaknessCWE-669

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

urllib3 is a user-friendly HTTP client library for Python. When using urllib3's proxy support with `ProxyManager`, the `Proxy-Authorization` header is only sent to the configured proxy, as expected. However, when sending HTTP requests *without* using urllib3's proxy support, it's possible to accidentally configure the `Proxy-Authorization` header even though it won't have any effect as the request is not using a forwarding proxy or a tunneling proxy. In those cases, urllib3 doesn't treat the `Proxy-Authorization` HTTP header as one carrying authentication material and thus doesn't strip the header on cross-origin redirects. Because this is a highly unlikely scenario, we believe the severity of this vulnerability is low for almost all users. Out of an abundance of caution urllib3 will automatically strip the `Proxy-Authorization` header during cross-origin redirects to avoid the small chance that users are doing this on accident. Users should use urllib3's proxy support or disable automatic redirects to achieve safe processing of the `Proxy-Authorization` header, but we still decided to strip the header by default in order to further protect users who aren't using the correct approach. We believe the number of usages affected by this advisory is low. It requires all of the following to be true to be exploited: 1. Setting the `Proxy-Authorization` header without using urllib3's built-in proxy support. 2. Not disabling HTTP redirects. 3. Either not using an HTTPS origin server or for the proxy or target origin to redirect to a malicious origin. Users are advised to update to either version 1.26.19 or version 2.2.2. Users unable to upgrade may use the `Proxy-Authorization` header with urllib3's `ProxyManager`, disable HTTP redirects using `redirects=False` when sending requests, or not user the `Proxy-Authorization` header as mitigations.

Timeline

dates in UTC
  1. 2024-06-1720:15CVE publishedNVD

Versions per branch

NVD · OSV
Python urllib3
BranchAffectedFixed in
2.x≥ 2.0.0, < 2.2.22.2.2
1.26< 1.26.191.26.19
Debian debian linux
BranchAffectedFixed in
11.0= 11.0no fix published
Netapp active iq unified manager
BranchAffectedFixed in
—all versionsno fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • urllib3
    Affected
    • = < 1.26.19no fix stated
    • = >= 2.0.0, < 2.2.2no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-06-17

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • aardvark-dnsRed Hat:enterprise_linux:8::appstreamall versions · fixed in 2:1.10.0-1.module+el8.10.0+22202+761b9a65
  • aardvark-dnsAlmaLinux:8all versions · fixed in 2:1.10.0-1.module_el8.10.0+3792+03eaed9c
  • aardvark-dnsAlmaLinux:8all versions · fixed in 2:1.10.0-1.module_el8.10.0+3858+6ad51f9f
  • aardvark-dnsAlmaLinux:8all versions · fixed in 2:1.10.0-1.module_el8.10.0+3876+e55593a8
  • azWolfiall versions · fixed in 2.61.0-r1and 1 other package
  • azChainguardall versions · fixed in 2.61.0-r1and 1 other package
  • buildahRed Hat:enterprise_linux:8::appstreamall versions · fixed in 2:1.33.8-4.module+el8.10.0+22202+761b9a65and 4 other packages
  • buildahAlmaLinux:8all versions · fixed in 2:1.33.8-4.module_el8.10.0+3876+e55593a8and 1 other package

241 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-37891 Red Hat Product Security1,559 products fixed · 35 known affected

    urllib3: proxy-authorization request header is not stripped during cross-origin redirects

    ansible-tower.src as a component of Red Hat Ansible Automation Platform 1.2 · python-urllib3.src as a component of Red Hat Ansible Automation Platform 1.2 · ansible-automation-platform-24/ee-minimal-rhel9 as a component of Red Hat Ansible Automation Platform 2 · +32 more

  • RHSA-2024:9985 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: RHOSP 17.1.4 (python-urllib3) security update

  • RHSA-2024:9922 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: python3.11-urllib3 security update

  • RHSA-2024:9923 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: python3.12-urllib3 security update

  • RHSA-2024:9458 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: python3.11-urllib3 security update

  • RHSA-2024:9457 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: python3.12-urllib3 security update

25 more advisories

Full record on NVD

Fix

  1. Update Python urllib3 to 2.2.2 · 1.26.19
  2. Vendor fix Red Hat Product Security RHSA-2024:9985 · 6 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2024:9922 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2024:8906 · 8 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.16/html/updating_red_hat_satellite/index
  5. Vendor fix Red Hat Product Security RHBA-2024:7523 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  6. Vendor fix Red Hat Product Security RHSA-2024:7312 · 8 productsRed Hat Ansible Automation Platform
  7. Workaround from the vendor Red Hat Product Security RHSA-2024:9985 · 6 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2024-06-18
  • CNACVSS 3.14.4known since 2026-10-23
  • NVDCVSS 3.16.5read 2026-10-23
  • CNAweakness (CWE)CWE-669known since 2026-10-23
  • FIRST EPSSEPSS score1.1 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryModerate2024-06-17

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Published
2024-06-17
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-34jh-p97f-mpxf

Frequently asked questions

What is CVE-2024-37891?

urllib3 is a user-friendly HTTP client library for Python. When using urllib3's proxy support with `ProxyManager`, the `Proxy-Authorization` header is only sent to the configured proxy, as expected. However, when sending HTTP requests *without* using urllib3's proxy support, it's possible to accidentally configure the `Proxy-Authorization` header even though it won't have any effect as the request is not using a forwarding proxy or a tunneling proxy. In those cases, urllib3 doesn't treat the `Proxy-Authorization` HTTP header as one carrying authentication material and thus doesn't strip the header on cross-origin redirects. Because this is a highly unlikely scenario, we believe the severity of this vulnerability is low for almost all users. Out of an abundance of caution urllib3 will automatically strip the `Proxy-Authorization` header during cross-origin redirects to avoid the small chance that users are doing this on accident. Users should use urllib3's proxy support or disable automatic redirects to achieve safe processing of the `Proxy-Authorization` header, but we still decided to strip the header by default in order to further protect users who aren't using the correct approach. We believe the number of usages affected by this advisory is low. It requires all of the following to be true to be exploited: 1. Setting the `Proxy-Authorization` header without using urllib3's built-in proxy support. 2. Not disabling HTTP redirects. 3. Either not using an HTTPS origin server or for the proxy or target origin to redirect to a malicious origin. Users are advised to update to either version 1.26.19 or version 2.2.2. Users unable to upgrade may use the `Proxy-Authorization` header with urllib3's `ProxyManager`, disable HTTP redirects using `redirects=False` when sending requests, or not user the `Proxy-Authorization` header as mitigations.

Is CVE-2024-37891 actively exploited?

Active exploitation of CVE-2024-37891 has not been confirmed. Its EPSS score was 1.1% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-37891?

CVE-2024-37891 has a CVSS v3 base score of 6.5 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.

Running urllib3? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record