PT-2023-6268 · Pypi+11 · Urllib3+11

Ranjit-Git

·

Published

2023-10-13

·

Updated

2026-05-19

·

CVE-2023-45803

CVSS v4.0

5.7

Medium

VectorAV:A/AC:L/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions urllib3 versions prior to 1.26.18 urllib3 versions prior to 2.0.7
Description The issue is related to the urllib3 library, a user-friendly HTTP client for Python, which previously did not remove the HTTP request body when an HTTP redirect response using status 301, 302, or 303 occurred after the request had its method changed from one that could accept a request body to GET. This behavior, although not specified in the section for redirects, can be inferred from other sections of HTTP RFCs and is observed in other major HTTP client implementations like curl and web browsers. The vulnerability requires a previously trusted service to become compromised to have an impact on confidentiality, and its exploitability is considered low. Additionally, many users do not put sensitive data in HTTP request bodies, making the vulnerability not exploitable in such cases. Two conditions must be true to be affected: using urllib3 and submitting sensitive information in the HTTP request body, and the origin service being compromised and starting to redirect using 301, 302, or 303 to a malicious peer or the redirected-to service becoming compromised.
Recommendations Update to version 1.26.18 or later to resolve the issue. Update to version 2.0.7 or later to resolve the issue. For users unable to update, disable redirects for services that aren't expecting to respond with redirects by setting redirects=False, and handle 301, 302, and 303 redirects manually by stripping the HTTP request body.

Exploit

Fix

Information Disclosure

Weakness Enumeration

Related Identifiers

ALSA-2024:0116
ALSA-2024:0464
ALSA-2024:11189
ALSA-2024:11238
ALSA-2024:2132
ALSA-2024:2952
ALSA-2024:2968
ALT-PU-2024-15946
ALT-PU-2024-16020
AZL-31615
AZL-35445
AZL-35785
AZL-59705
BDU:2023-06977
CESA-2024_0116
CESA-2024_11189
CESA-2024_2952
CESA-2024_2968
CESA-2024_2988
CVE-2023-45803
DLA-3649-1
DLA-3998-1
GHSA-G4MX-Q9VG-27P4
INFSA-2024_11189
INFSA-2024_11238
INFSA-2024_2132
INFSA-2024_2952
INFSA-2024_2968
INFSA-2024_2988
OESA-2023-1840
OESA-2024-1865
OESA-2024-1866
OESA-2024-1867
OESA-2024-1868
OESA-2024-1869
OPENSUSE-SU-2023_4467-1
OPENSUSE-SU-2024:13343-1
OPENSUSE-SU-2024:13344-1
PYSEC-2023-212
RHSA-2023:7851
RHSA-2024:0116
RHSA-2024:0300
RHSA-2024:0464
RHSA-2024:0588
RHSA-2024:11189
RHSA-2024:11238
RHSA-2024:1155
RHSA-2024:2132
RHSA-2024:2734
RHSA-2024:2952
RHSA-2024:2968
RHSA-2024:2988
RHSA-2024_0116
RHSA-2024_0464
RHSA-2024_11189
RHSA-2024_11238
RHSA-2024_2132
RHSA-2024_2952
RHSA-2024_2968
RHSA-2024_2988
RHSA-2025:0078
RHSA-2025:1793
RHSA-2025:1813
RLSA-2024:11238
RLSA-2024:2968
SUSE-SU-2023:4352-1
SUSE-SU-2023:4356-1
SUSE-SU-2023:4467-1
SUSE-SU-2023:4468-1
SUSE-SU-2023_4467-1
SUSE-SU-2023_4468-1
SUSE-SU-2024:2462-1
USN-6473-1
USN-6473-2
USN-7762-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Ibm Aix
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Urllib3