PT-2023-3599 · Pypi+11 · Requests+11

Smashits

+1

·

Published

2023-05-22

·

Updated

2026-05-04

·

CVE-2023-32681

CVSS v3.1

6.1

Medium

VectorAV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Requests versions 2.3.0 through 2.30.0
Description The issue is related to the leaking of Proxy-Authorization headers to destination servers when redirected to an HTTPS endpoint. This occurs due to how the rebuild proxies function is used to reattach the Proxy-Authorization header to requests. For HTTP connections sent through the tunnel, the proxy identifies the header in the request itself and removes 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.
Recommendations For versions 2.3.0 through 2.30.0, update to version 2.31.0 to resolve the issue. As a temporary workaround for users who are not able to update Requests immediately, consider disabling redirects by setting allow redirects to False on all calls through Requests top-level APIs. Note that if you're 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.

Exploit

Fix

Information Disclosure

Weakness Enumeration

Related Identifiers

ALSA-2023:4350
ALSA-2023:4520
ALSA-2023:7034
ALSA-2023:7042
ALSA-2023:7050
ALSA-2023_4350
ALSA-2023_4520
ALSA-2023_6324
ALSA-2023_6659
ALSA-2023_6694
ALSA-2023_6914
ALSA-2023_7034
ALSA-2023_7042
ALSA-2023_7050
ALSA-2023_7151
ALSA-2023_7176
ALSA-2024_11189
ALSA-2024_11238
ALSA-2024_1444
ALSA-2024_2132
ALSA-2024_3846
ALSA-2024_4260
ALSA-2025_12519
ALSA-2025_13234
ALSA-2025_14750
ALSA-2025_16880
ALT-PU-2023-1868
ALT-PU-2024-16153
ALT-PU-2024-17204
AZL-26985
BDU:2023-03874
CESA-2023_4520
CESA-2023_7034
CESA-2023_7042
CESA-2023_7050
CVE-2023-32681
DLA-3456-1
ECHO-ACBD-1583-01D0
ELSA-2023-4350
ELSA-2023-4520
ELSA-2023-7034
ELSA-2023-7042
ELSA-2023-7050
GHSA-J8R2-6X86-Q33Q
INFSA-2023_4520
MGASA-2023-0210
OESA-2023-1341
OESA-2025-2337
OESA-2025-2338
OESA-2025-2339
OPENSUSE-SU-2023_2866-1
OPENSUSE-SU-2024:12998-1
OPENSUSE-SU-2025:14997-1
PYSEC-2023-74
RHSA-2023:4350
RHSA-2023:4520
RHSA-2023:4693
RHSA-2023:6793
RHSA-2023:6818
RHSA-2023:7034
RHSA-2023:7042
RHSA-2023:7050
RHSA-2023_4350
RHSA-2023_4520
RHSA-2023_7034
RHSA-2023_7042
RHSA-2023_7050
RHSA-2024:0299
RLSA-2023:4520
RLSA-2023:6818
RLSA-2023_4520
RLSA-2023_6818
SUSE-SU-2023:2638-1
SUSE-SU-2023:2865-1
SUSE-SU-2023:2866-1
SUSE-SU-2023:2883-1
SUSE-SU-2023:3094-1
SUSE-SU-2023_2638-1
SUSE-SU-2023_2865-1
SUSE-SU-2023_2866-1
SUSE-SU-2023_2883-1
SUSE-SU-2023_3094-1
SUSE-SU-2024:2685-1
SUSE-SU-2024_2685-1
USN-6155-1
USN-6155-2
USN-7568-1
USN-7762-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Debian
Linuxmint
Red Hat
Red Os
Requests
Rocky Linux
Suse
Ubuntu