cve.bz

CVE-2018-18074 Insufficiently Protected Credentials

7.5 highExploit referenceEPSS 6.9%Fix available

High (7.5). EPSS 6.9% estimated probability of exploitation activity in the next 30 days. Fixed in requests 2.20.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
6.9% (unchanged from 6.9% a week ago; 7.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-522 Insufficiently Protected Credentials
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-18074 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-18074?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-18074?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-18074 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:requestsbefore 2.20.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
opensuse:leap15.1
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_workstation7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x84v-xcm2-53pgPyPIrequests<2.20.02.20.0
PYSEC-2018-28PyPIrequests<2.20.02.20.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14requests2.20.0-1DEBIAN-CVE-2018-18074
Ubuntu14.04:LTSrequests2.2.1-1ubuntu0.4UBUNTU-CVE-2018-18074 USN-3790-1
Ubuntu16.04:LTSrequests2.9.1-3ubuntu0.1UBUNTU-CVE-2018-18074 USN-3790-1
Ubuntu18.04:LTSpython-pip9.0.1-2.3~ubuntu1.18.04.2UBUNTU-CVE-2018-18074
Ubuntu18.04:LTSrequests2.18.4-2ubuntu0.1UBUNTU-CVE-2018-18074 USN-3790-1
UbuntuPro:16.04:LTSpython-pipno fix listedUBUNTU-CVE-2018-18074
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepython-pip, python3-pip0:9.0.3-7.el7_7RHSA-2020:0850
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepython-pip, python3-pip0:9.0.3-7.el7_8RHSA-2020:2068
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepython-requests0:2.6.0-5.el7RHSA-2019:2035
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepython-virtualenv0:15.1.0-4.el7_7RHSA-2020:0851
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepython-virtualenv0:15.1.0-4.el7_8RHSA-2020:2081
Red Hatenterprise_linux:8::appstreamCython, python2-Cython, Cython-debugsource and 1 more0:0.28.1-7.module+el8.1.0+3111+de3f2d8eRHSA-2020:1605
Red Hatenterprise_linux:8::appstreamPyYAML, python2-pyyaml, PyYAML-debugsource and 1 more0:3.12-16.module+el8.1.0+3111+de3f2d8eRHSA-2020:1605
Red Hatenterprise_linux:8::appstreambabel, python2-babel0:2.5.1-9.module+el8.1.0+3111+de3f2d8eRHSA-2020:1605
Red Hatenterprise_linux:8::appstreamnumpy, python2-numpy, numpy-debugsource and 3 more1:1.14.2-13.module+el8.1.0+3323+7ac3e00fRHSA-2020:1605
Red Hatenterprise_linux:8::appstreampytest, python2-pytest0:3.4.2-13.module+el8.1.0+3111+de3f2d8eRHSA-2020:1605
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python2-PyMySQL0:0.8.0-10.module+el8.1.0+3111+de3f2d8eRHSA-2020:1605
Red Hatenterprise_linux:8::appstreampython-attrs, python2-attrs0:17.4.0-10.module+el8.1.0+3111+de3f2d8eRHSA-2020:1605
37 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise High Availability Extension 12 SP1 and 18 morepython-PyYAML5.1.2-26.9.4SUSE-SU-2020:0555-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise High Availability Extension 12 SP1 and 15 morepython-asn1crypto0.24.0-2.5.1SUSE-SU-2020:0555-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise High Availability Extension 12 SP1 and 15 morepython-packaging17.1-2.5.1SUSE-SU-2020:0555-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Module for Public Cloud 12 and 17 morepython-certifi2018.4.16-3.6.1SUSE-SU-2020:1792-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Module for Public Cloud 12 and 17 morepython-chardet3.0.4-5.6.1SUSE-SU-2020:1792-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Module for Public Cloud 12 and 17 morepython-urllib31.22-3.20.1SUSE-SU-2020:1792-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 16 morepython3-requests2.20.1-5.2SUSE-SU-2020:1792-1
SUSEHPE Helion OpenStack 8, Linux Enterprise High Availability Extension 12 SP3, Linux Enterprise High Availability Extension 12 SP4 and 12 morepython-requests2.11.1-6.31.1SUSE-SU-2022:1819-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Module for Public Cloud 12, OpenStack Cloud 7 and 2 morepython-jsonpatch1.1-10.4.1SUSE-SU-2020:0555-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Module for Public Cloud 12, OpenStack Cloud 7 and 2 morepython-jsonpointer1.0-10.3.1SUSE-SU-2020:0555-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Module for Public Cloud 12, OpenStack Cloud 8 and 1 morepython-botocore1.12.213-28.12.1SUSE-SU-2020:0555-1
SUSELinux Enterprise High Availability Extension 12 SP1, Linux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server 12 SP2-BCL and 4 morepython-pyparsing2.2.0-7.6.1SUSE-SU-2020:0555-1
12 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.1python-requests, python-requests-test2.20.1-lp151.2.3.1openSUSE-SU-2019:1754-1
openSUSETumbleweedpython-requests2.34.2-1.2openSUSE-SU-2026:12038-1
AlmaLinux8python2-Cython0.28.1-7.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-PyMySQL0.8.0-10.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-attrs17.4.0-10.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-chardet3.0.4-10.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-coverage4.5.1-4.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-dns1.15.0-10.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-docs, python2-docs-info2.7.16-2.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-docutils0.14-12.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-funcsigs1.0.2-13.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-idna2.5-7.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-ipaddress1.0.18-6.module_el8.6.0+2781+fed64c13ALSA-2020:1605
AlmaLinux8python2-markupsafe0.23-19.module_el8.6.0+2781+fed64c13ALSA-2020:1605
13 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.28.1-7.module+el8.4.0+403+9ae17a31RLSA-2020:1605
Rocky Linux8Cython0:0.28.1-7.module+el8.5.0+706+735ec4b3RLSA-2020:1605
Rocky Linux8PyYAML0:3.12-16.module+el8.4.0+403+9ae17a31RLSA-2020:1605
Rocky Linux8PyYAML0:3.12-16.module+el8.5.0+706+735ec4b3RLSA-2020:1605
Rocky Linux8babel0:2.5.1-9.module+el8.4.0+403+9ae17a31RLSA-2020:1605
Rocky Linux8pytest0:3.4.2-13.module+el8.4.0+403+9ae17a31RLSA-2020:1605
Rocky Linux8pytest0:3.4.2-13.module+el8.5.0+706+735ec4b3RLSA-2020:1605
Rocky Linux8python-PyMySQL0:0.8.0-10.module+el8.3.0+120+426d8bafRLSA-2020:1605
Rocky Linux8python-PyMySQL0:0.8.0-10.module+el8.5.0+706+735ec4b3RLSA-2020:1605
Rocky Linux8python-attrs0:17.4.0-10.module+el8.4.0+403+9ae17a31RLSA-2020:1605
Rocky Linux8python-attrs0:17.4.0-10.module+el8.5.0+706+735ec4b3RLSA-2020:1605
Rocky Linux8python-chardet0:3.0.4-10.module+el8.4.0+403+9ae17a31RLSA-2020:1605
39 more for Rocky Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Ansible Tower 3.5 for RHEL 7ansible-tower-35/ansible-tower:3.5.6-1Fixed 2020-04-22RHBA-2020:1539
Red Hat Ansible Tower 3.6 for RHEL 7ansible-tower-36/ansible-tower:3.6.4-1Fixed 2020-04-22RHBA-2020:1540
Red Hat Enterprise Linux 7python-requests-0:2.6.0-5.el7Fixed 2019-08-06RHSA-2019:2035
Red Hat Enterprise Linux 7python-pip-0:9.0.3-7.el7_7Fixed 2020-03-17RHSA-2020:0850
Red Hat Enterprise Linux 7python-virtualenv-0:15.1.0-4.el7_7Fixed 2020-03-17RHSA-2020:0851
Red Hat Enterprise Linux 7python-pip-0:9.0.3-7.el7_8Fixed 2020-05-12RHSA-2020:2068
Red Hat Enterprise Linux 7python-virtualenv-0:15.1.0-4.el7_8Fixed 2020-05-12RHSA-2020:2081
Red Hat Enterprise Linux 8python27:2.7-8020020200117110429.90f98d4fFixed 2020-04-28RHSA-2020:1605
Red Hat Enterprise Linux 8python-pip-0:9.0.3-16.el8Fixed 2020-04-28RHSA-2020:1916
Red Hat Enterprise Linux 6python-requestsWill not fix
Red Hat Enterprise Linux 8python36:3.6/python-virtualenvAffected
Red Hat Enterprise Linux 8python-requestsNot affected
Red Hat OpenShift Container Platform 3.9python-requestsAffected
Red Hat OpenStack Platform 10 (Newton)python-requestsFix deferred
Red Hat OpenStack Platform 12 (Pike)python-requestsAffected
Red Hat OpenStack Platform 13 (Queens)python-requestsFix deferred
Red Hat OpenStack Platform 14 (Rocky)python-requestsAffected
Red Hat OpenStack Platform 8 (Liberty)python-requestsFix deferred
Red Hat OpenStack Platform 9 (Mitaka)python-requestsFix deferred
Red Hat Software Collectionspython27-python-pipFix deferred
5 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-18074.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-522 (13).

References

Check your stackJSON