PT-2018-1000 · Python+6 · Requests+6

Published

2018-06-29

·

Updated

2026-02-04

·

CVE-2018-18074

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions Requests versions prior to 2.20.0
Description The issue is related to a lack of mechanism for storing registration data in the Python Requests library, which handles HTTP requests. This can allow a remote attacker to gain access to confidential data by exploiting the vulnerability. Specifically, when the Requests package receives a same-hostname https-to-http redirect, it sends an HTTP Authorization header to an http URI, making it easier for attackers to discover credentials by sniffing the network.
Recommendations For versions prior to 2.20.0, update to version 2.20.0 or later to resolve the issue. As a temporary workaround, consider restricting the use of the Authorization header in HTTP requests to minimize the risk of exploitation. Avoid using the Authorization header in the affected API endpoint until the issue is resolved.

Exploit

Fix

Insufficiently Protected Credentials

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALBA-2019:3693
ALSA-2020:1605
BDU:2021-01443
CESA-2019_2035
CESA-2020_0850
CESA-2020_0851
CESA-2020_1605
CESA-2020_1916
CVE-2018-18074
GHSA-X84V-XCM2-53PG
MGASA-2018-0475
OPENSUSE-SU-2019:1754-1
OPENSUSE-SU-2019_1754-1
OPENSUSE-SU-2024:11266-1
OPENSUSE-SU-2024:13999-1
PYSEC-2018-28
RHSA-2019:2035
RHSA-2019_2035
RHSA-2020:0850
RHSA-2020:0851
RHSA-2020:1605
RHSA-2020:1916
RHSA-2020:2068
RHSA-2020:2081
RHSA-2020_0850
RHSA-2020_0851
RHSA-2020_1605
RHSA-2020_1916
RHSA-2020_2068
RHSA-2020_2081
RLSA-2020:1605
SUSE-FU-2022:0444-1
SUSE-FU-2022:0445-1
SUSE-SU-2019:1487-1
SUSE-SU-2019:1487-2
SUSE-SU-2019:2027-1
SUSE-SU-2019:2047-1
SUSE-SU-2019_1487-1
SUSE-SU-2019_1487-2
SUSE-SU-2020:0555-1
SUSE-SU-2020:1792-1
SUSE-SU-2020_0555-1
SUSE-SU-2022:1448-1
SUSE-SU-2022:1819-1
SUSE-SU-2022_1448-1
SUSE-SU-2022_1819-1
USN-3790-1
USN-3790-2

Affected Products

Almalinux
Centos
Red Hat
Requests
Rocky Linux
Suse
Ubuntu