Skip to content
Fencer Intel
high 7.5

CVE-2018-18074 json

Insufficiently Protected Credentials in Requests

published 8y ago modified 4mo ago also GHSA-x84v-xcm2-53pg , PYSEC-2018-28 , EUVD-2018-0131

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
6.9%
EPSS 6.9% chance of exploitation in 30 days, percentile 94%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi requests 2.20.0
  • python requests 2.20.0
  • requests Debian 14, Debian 13, Debian 12 2.20.0-1

debian advisories DEBIAN-CVE-2018-18074

  • requests Ubuntu 14.04 LTS 2.2.1-1ubuntu0.4
  • requests Ubuntu 16.04 LTS 2.9.1-3ubuntu0.1
  • requests Ubuntu 18.04 LTS 2.18.4-2ubuntu0.1
  • python-pip Ubuntu 18.04 LTS 9.0.1-2.3~ubuntu1.18.04.2

ubuntu advisories UBUNTU-CVE-2018-18074

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-virtualenv RHEL 7 15.1.0-4.el7_8
  • python-pip RHEL 7 9.0.3-7.el7_8
  • python3-pip RHEL 7 9.0.3-7.el7_8
  • python-pip RHEL 8 9.0.3-16.el8
  • python3-pip RHEL 8 9.0.3-16.el8
  • python3-pip-wheel RHEL 8 9.0.3-16.el8
  • platform-python-pip RHEL 8 9.0.3-16.el8
  • pytz RHEL 8 2017.2-12.module+el8.1.0+3111+de3f2d8e

red hat advisories RHSA-2020:2081RHSA-2020:2068RHSA-2020:1916RHSA-2020:1605RHSA-2020:0851RHSA-2020:0850

  • python-requests SLES 12 SP3-BCL, SLES 12 SP2-BCL, SLE Module for Advanced Systems Management 12 +13 more 2.11.1-6.31.1
  • python-requests SLES for SAP 15, SLES 15-LTSS, SLE High Performance Computing 15-LTSS +1 more 2.18.4-150000.3.3.1
  • python3-requests SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +16 more 2.20.1-5.2
  • python-certifi SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +17 more 2018.4.16-3.6.1
  • python-chardet SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +17 more 3.0.4-5.6.1
  • python-urllib3 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +17 more 1.22-3.20.1
  • python-boto3 SLE Module for Public Cloud 12 1.9.213-14.9.1
  • python-PyYAML SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +18 more 5.1.2-26.9.4

suse advisories SUSE-SU-2022:1819-1SUSE-SU-2022:1448-1SUSE-SU-2020:1792-1SUSE-SU-2020:0555-1SUSE-SU-2019:2047-1SUSE-SU-2019:2027-1

  • python-requests openSUSE Tumbleweed 2.34.2-1.2
  • python-requests openSUSE Leap 15.1 2.20.1-lp151.2.3.1
  • python-requests-test openSUSE Leap 15.1 2.20.1-lp151.2.3.1

opensuse advisories openSUSE-SU-2026:12038-1openSUSE-SU-2019:1754-1

  • python2-py AlmaLinux 8 1.5.3-6.module_el8.6.0+2781+fed64c13
  • python2-dns AlmaLinux 8 1.15.0-10.module_el8.6.0+2781+fed64c13
  • python2-idna AlmaLinux 8 2.5-7.module_el8.6.0+2781+fed64c13
  • python2-mock AlmaLinux 8 2.0.0-13.module_el8.6.0+2781+fed64c13
  • python2-pytz AlmaLinux 8 2017.2-12.module_el8.6.0+2781+fed64c13
  • python2-attrs AlmaLinux 8 17.4.0-10.module_el8.6.0+2781+fed64c13
  • python2-Cython AlmaLinux 8 0.28.1-7.module_el8.6.0+2781+fed64c13
  • python2-pluggy AlmaLinux 8 0.6.0-8.module_el8.6.0+2781+fed64c13

almalinux advisories ALSA-2020:1605ALBA-2019:3693

  • pytz Rocky Linux 8 2017.2-12.module+el8.5.0+706+735ec4b3
  • pytz Rocky Linux 8 2017.2-12.module+el8.4.0+403+9ae17a31
  • babel Rocky Linux 8 2.5.1-9.module+el8.4.0+403+9ae17a31
  • scipy Rocky Linux 8 1.0.0-20.module+el8.3.0+120+426d8baf
  • Cython Rocky Linux 8 0.28.1-7.module+el8.5.0+706+735ec4b3
  • Cython Rocky Linux 8 0.28.1-7.module+el8.4.0+403+9ae17a31
  • pytest Rocky Linux 8 3.4.2-13.module+el8.5.0+706+735ec4b3
  • pytest Rocky Linux 8 3.4.2-13.module+el8.4.0+403+9ae17a31

rocky linux advisories RLSA-2020:1605

Is CVE-2018-18074 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-18074 updated cvss 2.6

python-requests: Redirect from HTTPS to HTTP does not remove Authorization header

  • Red Hat Enterprise Linux 6 python-requests
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux 8 python-virtualenv, python2-virtualenv, python3-virtualenv Red Hat OpenShift Container Platform 3.9 python2-requests
    affected: no fix available
  • Red Hat OpenStack Platform 8 (Liberty) python-requests Red Hat OpenStack Platform 9 (Mitaka) python-requests Red Hat OpenStack Platform 10 (Newton) python-requests
    affected: no fix available “Fix deferred”
  • Red Hat OpenStack Platform 12 (Pike) python-requests
    affected: no fix available
  • Red Hat OpenStack Platform 13 (Queens) python2-requests
    affected: no fix available “Fix deferred”
  • Red Hat OpenStack Platform 14 (Rocky) python2-requests
    affected: no fix available
  • Red Hat Software Collections python27-python-pip, rh-python36-python-pip, python27-python-virtualenv, rh-mongodb36-python-requests, rh-python36-python-virtualenv Red Hat Storage 3 python-requests, python2-requests
    affected: no fix available “Fix deferred”
  • Red Hat Ansible Tower 3.5 for RHEL 7 Server ansible-tower-35/ansible-tower 3.5.6-1
    fixed: vendor fix RHBA-2020:1539
show 9 more
  • Red Hat Ansible Tower 3.6 for RHEL 7 ansible-tower-36/ansible-tower 3.6.4-1
    fixed: vendor fix RHBA-2020:1540
  • Red Hat Enterprise Linux AppStream (v. 8) python3-pip 9.0.3-16.el8, babel 2.5.1-9.module+el8.1.0+3111+de3f2d8e, pytz 2017.2-12.module+el8.1.0+3111+de3f2d8e, PyYAML 3.12-16.module+el8.1.0+3111+de3f2d8e, scipy 1.0.0-20.module+el8.1.0+3323+7ac3e00f, Cython 0.28.1-7.module+el8.1.0+3111+de3f2d8e, +85 more
    fixed: vendor fix RHSA-2020:1605
  • Red Hat Enterprise Linux BaseOS (v. 8) python-pip 9.0.3-16.el8, python3-pip-wheel 9.0.3-16.el8, platform-python-pip 9.0.3-16.el8
    fixed: vendor fix RHSA-2020:1916
  • Red Hat Enterprise Linux Client (v. 7) python-pip 9.0.3-7.el7_7, python-pip 9.0.3-7.el7_8, python3-pip 9.0.3-7.el7_7, python3-pip 9.0.3-7.el7_8, python-requests 2.6.0-5.el7
    fixed: vendor fix RHSA-2020:0850
  • Red Hat Enterprise Linux Client Optional (v. 7) python-virtualenv 15.1.0-4.el7_7, python-virtualenv 15.1.0-4.el7_8
    fixed: vendor fix RHSA-2020:0851
  • Red Hat Enterprise Linux ComputeNode (v. 7) python-pip 9.0.3-7.el7_7, python-pip 9.0.3-7.el7_8, python3-pip 9.0.3-7.el7_7, python3-pip 9.0.3-7.el7_8, python-requests 2.6.0-5.el7
    fixed: vendor fix RHSA-2020:0850
  • Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-virtualenv 15.1.0-4.el7_7, python-virtualenv 15.1.0-4.el7_8
    fixed: vendor fix RHSA-2020:0851
  • Red Hat Enterprise Linux Server (v. 7) python-pip 9.0.3-7.el7_7, python-pip 9.0.3-7.el7_8, python3-pip 9.0.3-7.el7_7, python3-pip 9.0.3-7.el7_8, python-requests 2.6.0-5.el7, python-virtualenv 15.1.0-4.el7_7, +1 more Red Hat Enterprise Linux Workstation (v. 7) python-pip 9.0.3-7.el7_7, python-pip 9.0.3-7.el7_8, python3-pip 9.0.3-7.el7_7, python3-pip 9.0.3-7.el7_8, python-requests 2.6.0-5.el7, python-virtualenv 15.1.0-4.el7_7, +1 more
    fixed: vendor fix RHSA-2020:0850
  • Red Hat Enterprise Linux 8 python-requests, python3-requests
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

6.93% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • bugs.debian.org https://bugs.debian.org/910766 referenced PoC, tagged "exploit" by a source, unverified
  • github.com https://github.com/requests/requests/issues/4716 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
pypi requests
<2.20.0
2.20.0

Classification

Weakness
  • CWE-522 Insufficiently Protected Credentials

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.