CVSS 3.1
6.1 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:NMedium (6.1). EPSS 3.0% estimated probability of exploitation activity in the next 30 days. Fixed in requests 2.31.0.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:Nrequests (PyPI): fixed in 2.31.0Explain 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| python:requests | from 2.3.0 before 2.31.0 |
| fedoraproject:fedora | 37 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-j8r2-6x86-q33q | PyPI | requests | >=2.3.0 <2.31.0 | 2.31.0 |
| PYSEC-2023-74 | PyPI | requests | >=2.3.0 <2.31.0 | 2.31.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 10 | requests | 2.21.0-1+deb10u1 | DLA-3456-1 |
| Debian | 12 | requests | no fix listed | DEBIAN-CVE-2023-32681 |
| Debian | 13, 14 | requests | 2.31.0+dfsg-1 | DEBIAN-CVE-2023-32681 |
| Ubuntu | 20.04:LTS | python-pip | 20.0.2-5ubuntu1.9 | UBUNTU-CVE-2023-32681 |
| Ubuntu | 20.04:LTS | requests | 2.22.0-2ubuntu1.1 | UBUNTU-CVE-2023-32681 USN-6155-1 |
| Ubuntu | 22.04:LTS | python-pip | 22.0.2+dfsg-1ubuntu0.7 | UBUNTU-CVE-2023-32681 USN-7762-1 |
| Ubuntu | 22.04:LTS | requests | 2.25.1+dfsg-2ubuntu0.1 | UBUNTU-CVE-2023-32681 USN-6155-1 USN-7568-1 |
| Ubuntu | 24.04:LTS | python-pip | 24.0+dfsg-1ubuntu1.3 | USN-7762-1 |
| Ubuntu | 24.04:LTS | requests | 2.31.0+dfsg-1ubuntu1.1 | USN-7568-1 |
| Ubuntu | Pro:14.04:LTS | requests | 2.2.1-1ubuntu0.4+esm1 | UBUNTU-CVE-2023-32681 USN-7568-1 |
| Ubuntu | Pro:16.04:LTS | requests | 2.9.1-3ubuntu0.1+esm1 | UBUNTU-CVE-2023-32681 USN-6155-2 USN-7568-1 |
| Ubuntu | Pro:18.04:LTS | requests | 2.18.4-2ubuntu0.1+esm1 | UBUNTU-CVE-2023-32681 USN-6155-2 USN-7568-1 |
| Ubuntu | Pro:20.04:LTS | requests | 2.22.0-2ubuntu1.1+esm1 | USN-7568-1 |
| Red Hat | ansible_automation_platform:2.4::el8 | automation-eda-controller, automation-eda-controller-ui, automation-eda-controller-server | 0:1.0.1-1.el8ap | RHSA-2023:4693 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-django, python3x-django | 0:3.2.20-1.el8ap | RHSA-2023:4693 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-requests, python3x-requests | 0:2.31.0-1.el8ap | RHSA-2023:4693 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8 | python39-cryptography, python3x-cryptography, python39-cryptography-debuginfo and 1 more | 0:38.0.4-2.el8ap | RHSA-2023:4693 |
| Red Hat | ansible_automation_platform:2.4::el9 | automation-eda-controller, automation-eda-controller-ui, automation-eda-controller-server | 0:1.0.1-1.el9ap | RHSA-2023:4693 |
| Red Hat | ansible_automation_platform:2.4::el9 | python-django, python3-django | 0:3.2.20-1.el9ap | RHSA-2023:4693 |
| Red Hat | ansible_automation_platform:2.4::el9, ansible_automation_platform_developer:2.4::el9, ansible_automation_platform_inside:2.4::el9 | python-cryptography, python3-cryptography, python3-cryptography-debuginfo and 1 more | 0:38.0.4-2.el9ap | RHSA-2023:4693 |
| Red Hat | enterprise_linux:8::appstream | Cython, python2-Cython, Cython-debugsource and 1 more | 0:0.28.1-7.module+el8.9.0+19487+7dc18407 | RHSA-2023:7042 |
| Red Hat | enterprise_linux:8::appstream | Cython, python38-Cython, Cython-debugsource and 1 more | 0:0.29.14-4.module+el8.9.0+19598+4a60c7b7 | RHSA-2023:7050 |
| Red Hat | enterprise_linux:8::appstream | PyYAML, python2-pyyaml, PyYAML-debugsource and 1 more | 0:3.12-16.module+el8.9.0+19487+7dc18407 | RHSA-2023:7042 |
| Red Hat | enterprise_linux:8::appstream | PyYAML, python38-pyyaml, PyYAML-debugsource and 1 more | 0:5.4.1-1.module+el8.9.0+19598+4a60c7b7 | RHSA-2023:7050 |
| Red Hat | enterprise_linux:8::appstream | PyYAML, python39-pyyaml, PyYAML-debugsource and 1 more | 0:5.4.1-1.module+el8.9.0+19644+d68f775d | RHSA-2023:7034 |
| 136 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 more | python-requests | 2.25.1-150100.6.16.1 | SUSE-SU-2023:3094-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Real Time 15 SP3 and 2 more | python-requests | 2.24.0-150300.3.3.1 | SUSE-SU-2024:2685-1 |
| SUSE | Linux Enterprise High Availability Extension 12 SP4, Linux Enterprise Module for Advanced Systems Management 12, Manager Client Tools 12 | python-requests | 2.11.1-6.34.1 | SUSE-SU-2023:2865-1 |
| SUSE | Linux Enterprise High Availability Extension 12 SP5, Linux Enterprise Module for Public Cloud 12, Linux Enterprise Server 12 SP5 and 1 more | python-requests | 2.24.0-8.14.1 | SUSE-SU-2023:2638-1 |
| SUSE | Linux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 5 more | python-requests | 2.24.0-150300.3.3.1 | SUSE-SU-2023:2866-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 and 1 more | python3-requests | 2.24.0-8.17.1 | SUSE-SU-2023:2883-1 |
| openSUSE | Leap 15.4, Leap 15.5 | python-requests | 2.24.0-150300.3.3.1 | SUSE-SU-2023:2866-1 |
| openSUSE | Leap Micro 5.3 | python-requests | 2.24.0-150300.3.3.1 | SUSE-SU-2024:2685-1 |
| openSUSE | Tumbleweed | oci-cli | 3.54.1-1.1 | openSUSE-SU-2025:14997-1 |
| openSUSE | Tumbleweed | python-requests | 2.31.0-1.2 | openSUSE-SU-2024:12998-1 |
| openSUSE | Tumbleweed | python-requests | 2.34.2-1.2 | openSUSE-SU-2026:12038-1 |
| AlmaLinux | 8 | babel, python2-babel | 2.5.1-10.module_el8.6.0+2781+fed64c13 | ALSA-2023:7042 |
| AlmaLinux | 8 | python2, python2-libs, python2-test and 4 more | 2.7.18-15.module_el8.9.0+3674+85657c95.alma.1 | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-Cython | 0.28.1-7.module_el8.6.0+2781+fed64c13 | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-Cython | 0.28.1-7.module_el8.6.0+3162+01a09e5a | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-PyMySQL | 0.8.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-attrs | 17.4.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-backports | 1.0-16.module_el8.6.0+2781+fed64c13 | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-backports | 1.0-16.module_el8.6.0+3162+01a09e5a | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-backports-ssl_match_hostname | 3.5.0.1-12.module_el8.6.0+2781+fed64c13 | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-bson, python2-pymongo, python2-pymongo-gridfs | 3.7.0-1.module_el8.6.0+2781+fed64c13 | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-bson, python2-pymongo, python2-pymongo-gridfs | 3.7.0-1.module_el8.6.0+3162+01a09e5a | ALSA-2023:7042 |
| AlmaLinux | 8 | python2-chardet | 3.0.4-10.module_el8.6.0+2781+fed64c13 | ALSA-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 rates this Moderate.
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)
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | python3x-requests-0:2.31.0-1.el8ap | Fixed 2023-08-21 | RHSA-2023:4693 |
| Red Hat Enterprise Linux 8 | python39:3.9-8090020230922213827.7484f1d1 | Fixed 2023-11-14 | RHSA-2023:7034 |
| Red Hat Enterprise Linux 8 | python39-devel:3.9-8090020230922213827.7484f1d1 | Fixed 2023-11-14 | RHSA-2023:7034 |
| Red Hat Enterprise Linux 8 | python27:2.7-8090020231003120724.449e760b | Fixed 2023-11-14 | RHSA-2023:7042 |
| Red Hat Enterprise Linux 8 | python38:3.8-8090020230810143931.d9f72c26 | Fixed 2023-11-14 | RHSA-2023:7050 |
| Red Hat Enterprise Linux 8 | python38-devel:3.8-8090020230810143931.d9f72c26 | Fixed 2023-11-14 | RHSA-2023:7050 |
| Red Hat Enterprise Linux 8 | python-requests-0:2.20.0-3.el8_8 | Fixed 2023-08-08 | RHSA-2023:4520 |
| Red Hat Enterprise Linux 8.6 Extended Update Support | python-requests-0:2.20.0-3.el8_6 | Fixed 2024-01-18 | RHSA-2024:0299 |
| Red Hat Enterprise Linux 9 | python-requests-0:2.25.1-7.el9_2 | Fixed 2023-08-01 | RHSA-2023:4350 |
| Red Hat Satellite 6.14 for RHEL 8 | python-requests-0:2.31.0-1.el8pc | Fixed 2023-11-08 | RHSA-2023:6818 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-python38-python-requests-0:2.22.0-11.el7 | Fixed 2023-11-08 | RHSA-2023:6793 |
| Red Hat Ansible Automation Platform 1.2 | python-requests | Affected | |
| Red Hat Enterprise Linux 6 | python-requests | Out of support scope | |
| Red Hat Enterprise Linux 7 | python-requests | Out of support scope | |
| Red Hat OpenShift Container Platform 3.11 | python-requests | Out of support scope | |
| Red Hat OpenStack Platform 13 (Queens) | python-requests | Out of support scope | |
| Red Hat Update Infrastructure 4 for Cloud Providers | python-requests | Affected |
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.
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).