cve.bz

CVE-2023-45803

4.2 mediumEPSS 0.6%Fix available

Medium (4.2). EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in urllib3 1.26.18, 2.0.7.

On this page
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.

Severity

CVSS 3.1

4.2 medium
CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-45803 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-45803?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-45803?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-45803 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:urllib3before 1.26.18
python:urllib3from 2.0.0 before 2.0.7
fedoraproject:fedora38

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g4mx-q9vg-27p4PyPIurllib3>=2.0.0 <2.0.72.0.7
GHSA-g4mx-q9vg-27p4PyPIurllib3<1.26.181.26.18
PYSEC-2023-212PyPIurllib3>=2.0.0 <2.0.7
<1.26.18
2.0.7, 1.26.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10python-urllib31.24.1-1+deb10u2DLA-3649-1
Debian11python-urllib31.26.5-1~exp1+deb11u1DLA-3998-1
Debian12python-urllib31.26.12-1+deb12u1DEBIAN-CVE-2023-45803
Debian13, 14python-urllib31.26.18-1DEBIAN-CVE-2023-45803
Ubuntu20.04:LTSpython-pip20.0.2-5ubuntu1.10UBUNTU-CVE-2023-45803 USN-6473-2
Ubuntu20.04:LTSpython-urllib31.25.8-2ubuntu0.3UBUNTU-CVE-2023-45803 USN-6473-1
Ubuntu22.04:LTSpython-pip22.0.2+dfsg-1ubuntu0.4UBUNTU-CVE-2023-45803 USN-6473-2 USN-7762-1
Ubuntu22.04:LTSpython-urllib31.26.5-1~exp1ubuntu0.1UBUNTU-CVE-2023-45803 USN-6473-1
Ubuntu24.04:LTSpython-pip24.0+dfsg-1ubuntu1.3UBUNTU-CVE-2023-45803 USN-7762-1
UbuntuPro:14.04:LTSpython-pip, python-urllib3no fix listedUBUNTU-CVE-2023-45803
UbuntuPro:16.04:LTSpython-pip8.1.1-2ubuntu0.6+esm6UBUNTU-CVE-2023-45803 USN-6473-2
UbuntuPro:16.04:LTSpython-urllib31.13.1-2ubuntu0.16.04.4+esm1UBUNTU-CVE-2023-45803 USN-6473-1
UbuntuPro:18.04:LTSpython-pip9.0.1-2.3~ubuntu1.18.04.8+esm2UBUNTU-CVE-2023-45803 USN-6473-2
UbuntuPro:18.04:LTSpython-urllib31.22-1ubuntu0.18.04.2+esm1UBUNTU-CVE-2023-45803 USN-6473-1
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.10.0-1.module+el8.10.0+21209+52deeb51RHSA-2024:2988
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more2:1.33.6-2.module+el8.10.0+21371+46937eceRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcockpit-podman0:84.1-1.module+el8.10.0+21373+0d273fdfRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.10-1.module+el8.10.0+21077+98b84d8aRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.229.0-2.module+el8.10.0+21196+3f0abbcaRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.4.0-2.module+el8.10.0+21366+f9cb49f8RHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcontainers-common2:1-81.module+el8.10.0+21340+c6c7475aRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcrit, criu, criu-libs and 5 more0:3.18-4.module+el8.9.0+20326+387084d0RHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcrun, crun-debuginfo, crun-debugsource0:1.14.3-2.module+el8.10.0+21340+c6c7475aRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamfence-agents, fence-agents-all, fence-agents-apc and 45 more0:4.2.1-121.el8_9.4RHBA-2024:0891
Red Hatenterprise_linux:8::appstreamfence-agents, fence-agents-all, fence-agents-apc and 45 more0:4.2.1-129.el8RHSA-2024:2968
Red Hatenterprise_linux:8::appstreamfuse-overlayfs, fuse-overlayfs-debuginfo, fuse-overlayfs-debugsource0:1.13-1.module+el8.10.0+20412+95ee28e2RHSA-2024:2988
56 more for Red Hat in the JSON and on Red Hat's page.
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-urllib31.25.10-5.25.1SUSE-SU-2023:4356-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 6 morepython-urllib31.25.10-150300.4.9.1SUSE-SU-2023:4467-1
SUSELinux Enterprise Micro 5.5python-urllib31.25.10-150300.4.9.1SUSE-SU-2024:2462-1
SUSELinux Enterprise Module for Public Cloud 12, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 2 morepython-urllib31.25.10-3.37.1SUSE-SU-2023:4468-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-urllib31.23-3.25.1SUSE-SU-2023:4352-1
openSUSELeap 15.4, Leap 15.5, Leap Micro 5.3 and 1 morepython-urllib31.25.10-150300.4.9.1SUSE-SU-2023:4467-1
openSUSETumbleweedpython-urllib32.0.7-1.1openSUSE-SU-2024:13343-1
openSUSETumbleweedpython-urllib32.8.0-1.1openSUSE-SU-2026:12044-1
openSUSETumbleweedpython-urllib3_11.26.20-7.2openSUSE-SU-2026:12045-1
AlmaLinux8fence-agents-all, fence-agents-apc, fence-agents-aws and 44 more4.2.1-129.el8ALSA-2024:2968
AlmaLinux8python3-urllib31.24.2-5.el8_9.2ALSA-2024:0116
AlmaLinux8python3.11-urllib31.26.12-5.el8_10ALSA-2024:11189
AlmaLinux8resource-agents, resource-agents-gcp, resource-agents-paf and 1 more4.9.0-54.el8ALSA-2024:2952
AlmaLinux9fence-virt, fence-virtd, fence-virtd-cpg and 52 more4.10.0-62.el9ALSA-2024:2132
AlmaLinux9python3-urllib31.26.5-3.el9_3.1ALSA-2024:0464
AlmaLinux9python3.11-urllib31.26.12-2.el9_5.2ALSA-2024:11238
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1815+5fe7415eRLSA-2024:2988
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1825+623b0c20RLSA-2024:2988
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1843+6892ab28RLSA-2024:2988
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1872+2e18eb19RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1825+623b0c20RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1843+6892ab28RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1872+2e18eb19RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1874+ce489889RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1880+8e896d1bRLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1896+b18fa106RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1948+4b5cd4a9RLSA-2024:2988
77 more for Rocky Linux in the JSON.
Alpinev3.15, v3.16, v3.17 and 7 morepy3-urllib31.26.18-r0ALPINE-CVE-2023-45803
Azure Linux2python-urllib31.26.18-1AZL-31615
Azure Linux2python33.9.19-14AZL-59705
Azure Linux3python-pip24.2-1AZL-35785
Azure Linux3python-urllib32.0.7-1AZL-35445
Alpaquita23, streampy3-urllib31.26.18-r0BELL-CVE-2023-45803

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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

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

Red Hat's mitigation

Users unable to update should disable redirects for services that aren't expecting to respond with redirects with `redirects=False`, disable automatic redirects with `redirects=False`, and handle 301, 302, and 303 redirects manually by stripping the HTTP request body.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8fence-agents-0:4.2.1-121.el8_9.4Fixed 2024-02-20RHBA-2024:0891
Red Hat Enterprise Linux 8python3.11-urllib3-0:1.26.12-5.el8_10Fixed 2024-12-17RHSA-2024:11189
Red Hat Enterprise Linux 8fence-agents-0:4.2.1-129.el8Fixed 2024-05-22RHSA-2024:2968
Red Hat Enterprise Linux 8container-tools:rhel8-8100020240227110532.82888897Fixed 2024-05-22RHSA-2024:2988
Red Hat Enterprise Linux 8resource-agents-0:4.9.0-54.el8Fixed 2024-05-22RHSA-2024:2952
Red Hat Enterprise Linux 8python-urllib3-0:1.24.2-5.el8_9.2Fixed 2024-01-10RHSA-2024:0116
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportfence-agents-0:4.2.1-65.el8_4.14Fixed 2024-03-19RHBA-2024:1398
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicefence-agents-0:4.2.1-65.el8_4.14Fixed 2024-03-19RHBA-2024:1398
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsfence-agents-0:4.2.1-65.el8_4.14Fixed 2024-03-19RHBA-2024:1398
Red Hat Enterprise Linux 8.6 Extended Update Supportfence-agents-0:4.2.1-89.el8_6.11Fixed 2024-03-05RHBA-2024:1114
Red Hat Ansible Automation Platform 2python-urllib3Not affected
Red Hat Certification for Red Hat Enterprise Linux 8redhat-certification-baremetal-containerWill not fix
Red Hat Discovery 1discovery-server-containerNot affected
Red Hat Enterprise Linux 6python-urllib3Out of support scope
Red Hat Enterprise Linux 7python-pipOut of support scope
Red Hat Enterprise Linux 7python-s3transferOut of support scope
Red Hat Enterprise Linux 7python-urllib3Out of support scope
Red Hat Enterprise Linux 7resource-agentsOut of support scope
Red Hat Enterprise Linux 8gimp:flatpak/python2-pipNot affected
Red Hat Enterprise Linux 8inkscape:flatpak/python2-pipNot affected
70 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-45803.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON