Vulnerability
CVE-2023-45803
urllib3 is a user-friendly HTTP client library for Python. urllib3 previously wouldn't remove the HTTP request body when an HTTP redirect response using status 301, 302, or 303 after the request had its method changed from one that could accept a request body (like `POST`) to `GET` as is required by HTTP RFCs. Although this behavior is not specified in the section for redirects, it can be inferred by piecing together information from different sections and we have observed the behavior in other major HTTP client implementations like curl and web browsers. Because the vulnerability requires a previously trusted service to become compromised in order to have an impact on confidentiality we believe the exploitability of this vulnerability is low. Additionally, many users aren't putting sensitive data in HTTP request bodies, if this is the case then this vulnerability isn't exploitable. Both of the following conditions must be true to be affected by this vulnerability: 1. Using urllib3 and submitting sensitive information in the HTTP request body (such as form data or JSON) and 2. The origin service is compromised and starts redirecting using 301, 302, or 303 to a malicious peer or the redirected-to service becomes compromised. This issue has been addressed in versions 1.26.18 and 2.0.7 and users are advised to update to resolve this issue. Users unable to update should disable redirects for services that aren't expecting to respond with redirects with `redirects=False` and disable automatic redirects with `redirects=False` and handle 301, 302, and 303 redirects manually by stripping the HTTP request body.
163 advisories report this vulnerability, across 15 ecosystems.
Advisories
-
ALAS2-2024-2387
Amazon Linux 2 2017.12 - ALAS2-2024-2387: medium priority package update for python-urllib3
-
ALAS2023-2026-3150
Amazon Linux 2023 - ALAS2023-2026-3150: Medium priority package update for python-urllib3
-
ALPINE-CVE-2023-45803
urllib3 is a user-friendly HTTP client library for Python. urllib3 previously wouldn't remove the HTTP request body when an HTTP redirect response using status 301, 302, or 303 after the request had its method changed…
- ALPINE-EDGE-CVE-2023-45803
-
ALSA-2024:0116
Moderate: python-urllib3 security update
-
ALSA-2024:0464
Moderate: python-urllib3 security update
-
ALSA-2024:11189
Moderate: python3.11-urllib3 security update
-
ALSA-2024:11238
Moderate: python3.11-urllib3 security update
-
ALSA-2024:2132
Moderate: fence-agents security and bug fix update
-
ALSA-2024:2952
Moderate: resource-agents security and bug fix update
-
ALSA-2024:2968
Moderate: fence-agents security and bug fix update
-
AZL-31615
CVE-2023-45803 affecting package python-urllib3 for versions less than 1.26.18-1
-
AZL-35445
CVE-2023-45803 affecting package python-urllib3 for versions less than 2.0.7-1
-
AZL-35785
CVE-2023-45803 affecting package python-pip for versions less than 24.2-1
-
AZL-59705
CVE-2023-45803 affecting package python3 for versions less than 3.9.19-14
- CGA-35pw-4gg9-5v32
- CGA-3f77-2h59-cfpq
- CGA-3hcc-59f7-v3gh
- CGA-3rw4-4582-cc47
- CGA-3v49-85ww-xw3r
- CGA-474g-3fcc-pjp2
- CGA-48vw-m9w6-3f27
- CGA-4j8v-x299-vq9q
- CGA-4j9j-mqp7-7q52
- CGA-4qc3-f89r-p352
- CGA-52cm-87p6-gv4p
- CGA-52rg-7m56-w9rc
- CGA-5gq3-97jr-xwfv
- CGA-5mph-5m4w-hg9w
- CGA-5v27-v7jj-jprv
- CGA-66wq-mcg3-2g2x
- CGA-6ff4-f757-35vf
- CGA-6fj5-m3vr-7hpj
- CGA-6gpx-25cp-w828
- CGA-772r-8m8j-v4rr
- CGA-78rc-phpg-9ffg
- CGA-8276-2vv6-6rpp
- CGA-82ff-264h-vfhr
- CGA-86p7-gfpw-mfj6
- CGA-87wx-qv74-m7pv
- CGA-8h5q-gcxf-9c62
- CGA-8hhp-m8pm-3x9v
- CGA-8qmp-m44h-5g25
- CGA-935v-gq8j-g6m2
- CGA-9j5m-p7ww-gpmq
- CGA-9j79-gwvq-jc7g
- CGA-9jcc-xxpg-cf6f
- CGA-9jxj-8wjv-45qx
- CGA-9p7r-fr6j-hqq3
- CGA-9qm7-prp5-8p32
- CGA-9wp3-vpp9-6jmp
- CGA-cvg5-h892-5j5q
- CGA-fpmv-w2p8-5p4x
- CGA-fr6w-7jw8-9xfc
- CGA-fw55-8h83-gcvw
- CGA-fwqp-8j68-w7gw
- CGA-g8jv-prm5-2x3q
- CGA-g9pp-5rw4-f5xx
- CGA-gmgj-7q95-hxqh
- CGA-grm6-mpr3-wg69
- CGA-h4wg-9f8f-vh7x
- CGA-hf32-2274-4x3h
- CGA-hgh9-764v-9f95
- CGA-hp4m-93rc-72mh
- CGA-hqvh-mwfg-46pr
- CGA-hrr7-72ff-5459
- CGA-j3gg-ffqg-vm33
- CGA-j76q-95rg-2gwh
- CGA-jc8f-f6hp-w9mc
- CGA-m7q3-5h37-7rph
- CGA-m7qx-m6xp-93gh
- CGA-m8gc-mffj-cq39
- CGA-mrwh-94qm-qfxm
- CGA-p239-2mhw-2jfw
- CGA-p2rf-5x38-45xr
- CGA-p75h-mvg9-64ww
- CGA-p778-8p53-5jqj
- CGA-pfm2-rx9v-cvwr
- CGA-pg94-2wwg-gw8v
- CGA-px34-6hgp-84mc
- CGA-pxjg-r39x-p8fq
- CGA-q53w-p3v8-wcgw
- CGA-q5m9-ppxg-m585
- CGA-q9f8-cpg9-rv7j
- CGA-qcrx-9fpx-8p76
- CGA-r39q-vxr4-q77r
- CGA-r5hm-8272-68j3
- CGA-r852-57jj-hj8x
- CGA-rm2m-5q7f-v3x5
- CGA-v5fx-r8q4-w4pw
- CGA-vmhh-753p-x6q4
- CGA-vv8w-75w8-r7mq
- CGA-vvc8-f5h9-v9w2
- CGA-vwj6-j2q3-gxv3
- CGA-w4fg-hpvw-w653
- CGA-w9g5-46vq-8r3q
- CGA-wf5x-5g8w-8cw4
- CGA-x2qv-gw6g-48h6
- CGA-x7p9-586r-wpgx
- CGA-x7xf-27w8-2r4g
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2023-45803.
References
- https://github.com/urllib3/urllib3/commit/4e98d57809dacab1cbe625fddeec1a290c478ea9
- https://github.com/urllib3/urllib3/security/advisories/GHSA-g4mx-q9vg-27p4
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4R2Y5XK3WALSR3FNAGN7JBYV2B343ZKB/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PPDPLM6UUMN55ESPQWJFLLIZY4ZKCNRX/
- https://www.rfc-editor.org/rfc/rfc9110.html#name-get
- https://lists.debian.org/debian-lts-announce/2024/12/msg00020.html