Vulnerabilities · 2018 · Python
CVE-2018-18074
Python Requests vulnerability
The Requests package before 2.20.0 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network.
Affected products
Requests, Ubuntu Linux, Leap, Enterprise Linux Desktop, Enterprise Linux Server, Enterprise Linux Workstation. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Requests runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.debian.org/910766 · Exploit
- github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff · Patch
- github.com/requests/requests/issues/4716 · Exploit
- github.com/requests/requests/pull/4718 · Patch
- docs.python-requests.org/en/master/community/updates/#release-and-version-history · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2019-07/msg00024.html · Third Party Advisory
- access.redhat.com/errata/RHSA-2019:2035 · Third Party Advisory
- usn.ubuntu.com/3790-1/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2018-18074
- cve.org/CVERecord?id=CVE-2018-18074
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.