CVE-2018-18074
A public proof of concept exists; no exploitation attested.
- Published2018-10-09
- WeaknessCWE-522
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2018-10-0917:29CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 14.4 | = 14.04 | no fix published | NVD |
| 16.4 | = 16.04 | no fix published | NVD |
| 18.4 | = 18.04 | no fix published | NVD |
| 18.10 | = 18.10 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 15.1 | = 15.1 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.20 | < 2.20.0 | 2.20.0 | NVD · OSV |
3 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- babelRocky Linux:8all versions · fixed in 0:2.5.1-9.module+el8.4.0+403+9ae17a31
- babelRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:2.5.1-9.module+el8.1.0+3111+de3f2d8eand 1 other package
- CythonRocky Linux:8all versions · fixed in 0:0.28.1-7.module+el8.4.0+403+9ae17a31
- CythonRocky Linux:8all versions · fixed in 0:0.28.1-7.module+el8.5.0+706+735ec4b3
- CythonRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:0.28.1-7.module+el8.1.0+3111+de3f2d8eand 3 other packages
- pytestRocky Linux:8all versions · fixed in 0:3.4.2-13.module+el8.4.0+403+9ae17a31
- pytestRocky Linux:8all versions · fixed in 0:3.4.2-13.module+el8.5.0+706+735ec4b3
- pytestRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:3.4.2-13.module+el8.1.0+3111+de3f2d8eand 1 other package
351 more package ranges on OSV.dev
Vendor advisories
python-requests: Redirect from HTTPS to HTTP does not remove Authorization header
python-requests.src as a component of Red Hat Enterprise Linux 6 · python-virtualenv-doc (python36:3.6) as a component of Red Hat Enterprise Linux 8 · python-virtualenv.src (python36:3.6) as a component of Red Hat Enterprise Linux 8 · +20 more
Red Hat Security Advisory: python-pip security update
Red Hat Security Advisory: python-virtualenv security update
Red Hat Security Advisory: python27:2.7 security, bug fix, and enhancement update
Red Hat Security Advisory: python-pip security update
Red Hat Bug Fix Advisory: Red Hat Ansible Tower 3.5.6-1 - RHEL7 Container
4 more advisories
Fix
- Vendor fix Red Hat Product Security RHSA-2020:2068 · 8 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHBA-2020:1539 · 1 productFor information on upgrading Ansible Tower, reference the Ansible Tower Upgrade and Migration Guide: https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/index.html
- No fix planned, says the vendor Red Hat Product Security CVE-2018-18074 · 1 productWill not fix
Advisories and patches
- docs.python-requests.orgRelease Notes
- bugs.debian.orgPatch
- github.comPatch
- github.comPatch
- github.comPatch
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01mlbrilliance/aurora-demo-lockfile
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- NVDweakness (CWE)CWE-522read 2026-10-23
- FIRST EPSSEPSS score6.9 %2026-11-08
- PoC-in-GitHubproof of concept1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2020-06-16
Identifiers
- EUVD-2018-0131same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-x84v-xcm2-53pgsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2018-28same flawPyPA Advisory Database · CC-BY-4.0
- ALBA-2019:3693advisory covering several CVEsAlmaLinux · MIT
- ALSA-2020:1605advisory covering several CVEsAlmaLinux · MIT
- MGASA-2018-0475advisory covering several CVEsMageia · LicenseRef-unstated
- openSUSE-SU-2019:1754-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:12038-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2019:2035advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2020:0850advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2020:0851advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2020:1605advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2020:1916advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2020:2068advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2020:2081advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2020:1605advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2019:1487-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2019:2027-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2019:2047-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2020:0555-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2020:1792-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:1448-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:1819-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-3790-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Published
- 2018-10-09
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-x84v-xcm2-53pg
Frequently asked questions
What is CVE-2018-18074?
Is CVE-2018-18074 actively exploited?
What is the CVSS score for CVE-2018-18074?
Running requests? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2019-20916same product
- CVE-2023-32681same product
- CVE-2022-40898same product
- CVE-2022-40897same product
- CVE-2024-6345same product
- CVE-2021-3572same product
- CVE-2018-20225same product
- CVE-2025-47273same productsetuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-x84v-xcm2-53pg
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0