cve.bz

CVE-2023-32681

6.1 mediumEPSS 3.0%Fix available

Medium (6.1). EPSS 3.0% estimated probability of exploitation activity in the next 30 days. Fixed in requests 2.31.0.

On this page
Requests is a HTTP library. Since Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to destination servers when redirected to an HTTPS endpoint. This is a product of how we use `rebuild_proxies` to reattach the `Proxy-Authorization` header to requests. For HTTP connections sent through the tunnel, the proxy will identify the header in the request itself and remove it prior to forwarding to the destination server. However when sent over HTTPS, the `Proxy-Authorization` header must be sent in the CONNECT request as the proxy has no visibility into the tunneled request. This results in Requests forwarding proxy credentials to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate sensitive information. This issue has been patched in version 2.31.0.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
EPSS
3.0% (unchanged from 3.0% a week ago; 3.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-21. 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 2025-01-14. 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-32681 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-32681?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-32681?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-32681 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:requestsfrom 2.3.0 before 2.31.0
fedoraproject:fedora37

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-j8r2-6x86-q33qPyPIrequests>=2.3.0 <2.31.02.31.0
PYSEC-2023-74PyPIrequests>=2.3.0 <2.31.02.31.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10requests2.21.0-1+deb10u1DLA-3456-1
Debian12requestsno fix listedDEBIAN-CVE-2023-32681
Debian13, 14requests2.31.0+dfsg-1DEBIAN-CVE-2023-32681
Ubuntu20.04:LTSpython-pip20.0.2-5ubuntu1.9UBUNTU-CVE-2023-32681
Ubuntu20.04:LTSrequests2.22.0-2ubuntu1.1UBUNTU-CVE-2023-32681 USN-6155-1
Ubuntu22.04:LTSpython-pip22.0.2+dfsg-1ubuntu0.7UBUNTU-CVE-2023-32681 USN-7762-1
Ubuntu22.04:LTSrequests2.25.1+dfsg-2ubuntu0.1UBUNTU-CVE-2023-32681 USN-6155-1 USN-7568-1
Ubuntu24.04:LTSpython-pip24.0+dfsg-1ubuntu1.3USN-7762-1
Ubuntu24.04:LTSrequests2.31.0+dfsg-1ubuntu1.1USN-7568-1
UbuntuPro:14.04:LTSrequests2.2.1-1ubuntu0.4+esm1UBUNTU-CVE-2023-32681 USN-7568-1
UbuntuPro:16.04:LTSrequests2.9.1-3ubuntu0.1+esm1UBUNTU-CVE-2023-32681 USN-6155-2 USN-7568-1
UbuntuPro:18.04:LTSrequests2.18.4-2ubuntu0.1+esm1UBUNTU-CVE-2023-32681 USN-6155-2 USN-7568-1
UbuntuPro:20.04:LTSrequests2.22.0-2ubuntu1.1+esm1USN-7568-1
Red Hatansible_automation_platform:2.4::el8automation-eda-controller, automation-eda-controller-ui, automation-eda-controller-server0:1.0.1-1.el8apRHSA-2023:4693
Red Hatansible_automation_platform:2.4::el8python39-django, python3x-django0:3.2.20-1.el8apRHSA-2023:4693
Red Hatansible_automation_platform:2.4::el8python39-requests, python3x-requests0:2.31.0-1.el8apRHSA-2023:4693
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8python39-cryptography, python3x-cryptography, python39-cryptography-debuginfo and 1 more0:38.0.4-2.el8apRHSA-2023:4693
Red Hatansible_automation_platform:2.4::el9automation-eda-controller, automation-eda-controller-ui, automation-eda-controller-server0:1.0.1-1.el9apRHSA-2023:4693
Red Hatansible_automation_platform:2.4::el9python-django, python3-django0:3.2.20-1.el9apRHSA-2023:4693
Red Hatansible_automation_platform:2.4::el9, ansible_automation_platform_developer:2.4::el9, ansible_automation_platform_inside:2.4::el9python-cryptography, python3-cryptography, python3-cryptography-debuginfo and 1 more0:38.0.4-2.el9apRHSA-2023:4693
Red Hatenterprise_linux:8::appstreamCython, python2-Cython, Cython-debugsource and 1 more0:0.28.1-7.module+el8.9.0+19487+7dc18407RHSA-2023:7042
Red Hatenterprise_linux:8::appstreamCython, python38-Cython, Cython-debugsource and 1 more0:0.29.14-4.module+el8.9.0+19598+4a60c7b7RHSA-2023:7050
Red Hatenterprise_linux:8::appstreamPyYAML, python2-pyyaml, PyYAML-debugsource and 1 more0:3.12-16.module+el8.9.0+19487+7dc18407RHSA-2023:7042
Red Hatenterprise_linux:8::appstreamPyYAML, python38-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.9.0+19598+4a60c7b7RHSA-2023:7050
Red Hatenterprise_linux:8::appstreamPyYAML, python39-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.9.0+19644+d68f775dRHSA-2023:7034
136 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 morepython-requests2.25.1-150100.6.16.1SUSE-SU-2023:3094-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Real Time 15 SP3 and 2 morepython-requests2.24.0-150300.3.3.1SUSE-SU-2024:2685-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Module for Advanced Systems Management 12, Manager Client Tools 12python-requests2.11.1-6.34.1SUSE-SU-2023:2865-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Module for Public Cloud 12, Linux Enterprise Server 12 SP5 and 1 morepython-requests2.24.0-8.14.1SUSE-SU-2023:2638-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 5 morepython-requests2.24.0-150300.3.3.1SUSE-SU-2023:2866-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 and 1 morepython3-requests2.24.0-8.17.1SUSE-SU-2023:2883-1
openSUSELeap 15.4, Leap 15.5python-requests2.24.0-150300.3.3.1SUSE-SU-2023:2866-1
openSUSELeap Micro 5.3python-requests2.24.0-150300.3.3.1SUSE-SU-2024:2685-1
openSUSETumbleweedoci-cli3.54.1-1.1openSUSE-SU-2025:14997-1
openSUSETumbleweedpython-requests2.31.0-1.2openSUSE-SU-2024:12998-1
openSUSETumbleweedpython-requests2.34.2-1.2openSUSE-SU-2026:12038-1
AlmaLinux8babel, python2-babel2.5.1-10.module_el8.6.0+2781+fed64c13ALSA-2023:7042
AlmaLinux8python2, python2-libs, python2-test and 4 more2.7.18-15.module_el8.9.0+3674+85657c95.alma.1ALSA-2023:7042
AlmaLinux8python2-Cython0.28.1-7.module_el8.6.0+2781+fed64c13ALSA-2023:7042
AlmaLinux8python2-Cython0.28.1-7.module_el8.6.0+3162+01a09e5aALSA-2023:7042
AlmaLinux8python2-PyMySQL0.8.0-10.module_el8.6.0+2781+fed64c13ALSA-2023:7042
AlmaLinux8python2-attrs17.4.0-10.module_el8.6.0+2781+fed64c13ALSA-2023:7042
AlmaLinux8python2-backports1.0-16.module_el8.6.0+2781+fed64c13ALSA-2023:7042
AlmaLinux8python2-backports1.0-16.module_el8.6.0+3162+01a09e5aALSA-2023:7042
AlmaLinux8python2-backports-ssl_match_hostname3.5.0.1-12.module_el8.6.0+2781+fed64c13ALSA-2023:7042
AlmaLinux8python2-bson, python2-pymongo, python2-pymongo-gridfs3.7.0-1.module_el8.6.0+2781+fed64c13ALSA-2023:7042
AlmaLinux8python2-bson, python2-pymongo, python2-pymongo-gridfs3.7.0-1.module_el8.6.0+3162+01a09e5aALSA-2023:7042
AlmaLinux8python2-chardet3.0.4-10.module_el8.6.0+2781+fed64c13ALSA-2023:7042
116 more for AlmaLinux in the JSON.

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

For users who are not able to update Requests immediately, there is one potential workaround.

You may disable redirects by setting allow_redirects to False on all calls through Requests top-level APIs. Note that if you are currently relying on redirect behaviors, you will need to capture the 3xx response codes and ensure a new request is made to the redirect destination.

import requests

r = requests.get('http://github.com/', allow_redirects=False)

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8python3x-requests-0:2.31.0-1.el8apFixed 2023-08-21RHSA-2023:4693
Red Hat Enterprise Linux 8python39:3.9-8090020230922213827.7484f1d1Fixed 2023-11-14RHSA-2023:7034
Red Hat Enterprise Linux 8python39-devel:3.9-8090020230922213827.7484f1d1Fixed 2023-11-14RHSA-2023:7034
Red Hat Enterprise Linux 8python27:2.7-8090020231003120724.449e760bFixed 2023-11-14RHSA-2023:7042
Red Hat Enterprise Linux 8python38:3.8-8090020230810143931.d9f72c26Fixed 2023-11-14RHSA-2023:7050
Red Hat Enterprise Linux 8python38-devel:3.8-8090020230810143931.d9f72c26Fixed 2023-11-14RHSA-2023:7050
Red Hat Enterprise Linux 8python-requests-0:2.20.0-3.el8_8Fixed 2023-08-08RHSA-2023:4520
Red Hat Enterprise Linux 8.6 Extended Update Supportpython-requests-0:2.20.0-3.el8_6Fixed 2024-01-18RHSA-2024:0299
Red Hat Enterprise Linux 9python-requests-0:2.25.1-7.el9_2Fixed 2023-08-01RHSA-2023:4350
Red Hat Satellite 6.14 for RHEL 8python-requests-0:2.31.0-1.el8pcFixed 2023-11-08RHSA-2023:6818
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-requests-0:2.22.0-11.el7Fixed 2023-11-08RHSA-2023:6793
Red Hat Ansible Automation Platform 1.2python-requestsAffected
Red Hat Enterprise Linux 6python-requestsOut of support scope
Red Hat Enterprise Linux 7python-requestsOut of support scope
Red Hat OpenShift Container Platform 3.11python-requestsOut of support scope
Red Hat OpenStack Platform 13 (Queens)python-requestsOut of support scope
Red Hat Update Infrastructure 4 for Cloud Providerspython-requestsAffected

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-32681.

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