Skip to main content
Public proof of conceptFix available

CVE-2018-18074

A public proof of concept exists; no exploitation attested.

  • Published2018-10-09
  • WeaknessCWE-522

Am I 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
  1. 2018-10-0917:29CVE publishedNVD

Versions per branch

NVD · OSV
Canonical ubuntu linux
BranchAffectedFixed in
14.4= 14.04no fix published
16.4= 16.04no fix published
18.4= 18.04no fix published
18.10= 18.10no fix published
Opensuse leap
BranchAffectedFixed in
15.1= 15.1no fix published
Python requests
BranchAffectedFixed in
2.20< 2.20.02.20.0

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

  • CVE-2018-18074 Red Hat Product Security314 products fixed · 23 known affected

    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

  • RHSA-2020:2068 Red Hat Product Security8 products fixed

    Red Hat Security Advisory: python-pip security update

  • RHSA-2020:2081 Red Hat Product Security8 products fixed

    Red Hat Security Advisory: python-virtualenv security update

  • RHSA-2020:1605 Red Hat Product Security264 products fixed

    Red Hat Security Advisory: python27:2.7 security, bug fix, and enhancement update

  • RHSA-2020:1916 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: python-pip security update

  • RHBA-2020:1539 Red Hat Product Security1 product fixed

    Red Hat Bug Fix Advisory: Red Hat Ansible Tower 3.5.6-1 - RHEL7 Container

4 more advisories

Full record on NVD

Fix

  1. 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
  2. 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
  3. No fix planned, says the vendor Red Hat Product Security CVE-2018-18074 · 1 productWill not fix

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2018-18074 actively exploited?

Active exploitation of CVE-2018-18074 has not been confirmed. Its EPSS score was 6.9% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-18074?

CVE-2018-18074 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

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

Sources for this record