CVE-2024-37891
ADVISORY - githubSummary
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.
Affected usages
We believe the number of usages affected by this advisory is low. It requires all of the following to be true to be exploited:
- Setting the
Proxy-Authorization
header without using urllib3's built-in proxy support. - Not disabling HTTP redirects.
- Either not using an HTTPS origin server or for the proxy or target origin to redirect to a malicious origin.
Remediation
- Using the
Proxy-Authorization
header with urllib3'sProxyManager
. - Disabling HTTP redirects using
redirects=False
when sending requests. - Not using the
Proxy-Authorization
header.
Common Weakness Enumeration (CWE)
Incorrect Resource Transfer Between Spheres
Incorrect Resource Transfer Between Spheres
Incorrect Resource Transfer Between Spheres
GitHub
0.7
CVSS SCORE
4.4mediumPackage | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
---|---|---|---|---|---|
urllib3 | pypi | - | - | <1.26.19 | 1.26.19 |
urllib3 | pypi | - | - | >=2.0.0,<2.2.2 | 2.2.2 |
CVSS:3 Severity and metrics
The CVSS metrics represent different qualitative aspects of a vulnerability that impact the overall score, as defined by the CVSS Specification.
The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology. This can mean an attack must be launched from the same shared physical (e.g., Bluetooth or IEEE 802.11) or logical (e.g., local IP subnet) network, or from within a secure or otherwise limited administrative domain (e.g., MPLS, secure VPN to an administrative network zone). One example of an Adjacent attack would be an ARP (IPv4) or neighbor discovery (IPv6) flood leading to a denial of service on the local LAN segment (e.g., CVE-2013-6014).
A successful attack depends on conditions beyond the attacker's control, requiring investing a measurable amount of effort in research, preparation, or execution against the vulnerable component before a successful attack.
The attacker requires privileges that provide significant (e.g., administrative) control over the vulnerable component allowing access to component-wide settings and files.
The vulnerable system can be exploited without interaction from any user.
An exploited vulnerability can only affect resources managed by the same security authority. In this case, the vulnerable component and the impacted component are either the same, or both are managed by the same security authority.
There is a total loss of confidentiality, resulting in all resources within the impacted component being divulged to the attacker. Alternatively, access to only some restricted information is obtained, but the disclosed information presents a direct, serious impact. For example, an attacker steals the administrator's password, or private encryption keys of a web server.
There is no loss of trust or accuracy within the impacted component.
There is no impact to availability within the impacted component.
NIST
0.7
CVSS SCORE
4.4mediumDebian
-
Ubuntu
-
CVSS SCORE
N/AlowAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAmazon
-
CVSS SCORE
N/AmediumAmazon
-
CVSS SCORE
N/AmediumAmazon
-
CVSS SCORE
N/AmediumAmazon
-
CVSS SCORE
N/AmediumAmazon
-
CVSS SCORE
N/AmediumRed Hat
0.7
CVSS SCORE
4.4mediumRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumChainguard
CGA-2qrm-4h49-w24j
-
Chainguard
CGA-2vvm-h2g8-jrwc
-
Chainguard
CGA-32mf-hm7c-cqmg
-
Chainguard
CGA-37xg-qrch-w8h8
-
Chainguard
CGA-3ggr-w55x-hf5j
-
Chainguard
CGA-4c69-m94v-gfxj
-
Chainguard
CGA-4jh7-mjvv-47gg
-
Chainguard
CGA-5v3j-934q-gj4m
-
Chainguard
CGA-64rf-gm8h-pg8g
-
Chainguard
CGA-688x-4mm6-g5vm
-
Chainguard
CGA-69g4-mv22-46cq
-
Chainguard
CGA-6hpf-7xc5-652f
-
Chainguard
CGA-7p2x-f7wv-c97h
-
Chainguard
CGA-85xf-36wm-fq6g
-
Chainguard
CGA-8f64-fgpv-jxj2
-
Chainguard
CGA-8gfq-vj73-fvmc
-
Chainguard
CGA-8hmh-fp2r-2hjj
-
Chainguard
CGA-8hq8-2689-rc8h
-
Chainguard
CGA-93cg-mjjq-g57x
-
Chainguard
CGA-9qf6-pmhg-66vf
-
Chainguard
CGA-cqqj-2hx6-hgww
-
Chainguard
CGA-cx62-9vw2-mmpq
-
Chainguard
CGA-grjq-jh3q-2p7g
-
Chainguard
CGA-gw94-w557-8qgw
-
Chainguard
CGA-gwpm-7fhq-3wh2
-
Chainguard
CGA-h23r-354j-94v6
-
Chainguard
CGA-h28r-8q2c-xq96
-
Chainguard
CGA-j235-35vq-wrm8
-
Chainguard
CGA-j5cf-g6hv-ffrf
-
Chainguard
CGA-j637-8qh3-v7w8
-
Chainguard
CGA-jqq5-p5w5-hr5j
-
Chainguard
CGA-m9q6-p3c8-wp58
-
Chainguard
CGA-mrr8-97mj-749q
-
Chainguard
CGA-q9mm-3wv2-78p3
-
Chainguard
CGA-qjc5-jghp-q5f7
-
Chainguard
CGA-r787-2v75-7fv7
-
Chainguard
CGA-r95r-75cj-jf9p
-
Chainguard
CGA-rqhm-766h-p289
-
Chainguard
CGA-v4hh-p43v-5p7w
-
Chainguard
CGA-vc35-fw59-66f9
-
Chainguard
CGA-vgvj-86h2-mvw3
-
Chainguard
CGA-vm4f-px9q-57qh
-
Chainguard
CGA-vwcx-7fqm-jggq
-
Chainguard
CGA-w3h9-h7jv-6q22
-