CVE-2018-18074
Insufficiently Protected Credentials in Requests
Reported by mitre · Published October 9, 2018
requests is fixed in c45d7c49ea75133e52ab22a8e9e13173938e36ff and 2.20.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| requests | PyPI | c45d7c49ea75133e52ab22a8e9e13173938e36ff, 2.20.0 |
| python-virtualenv | Amazon Linux | 15.1.0-4.amzn2 |
| python-requests | Amazon Linux | 2.6.0-7.amzn2 |
| requests | Ubuntu:18.04:LTS | 2.18.4-2ubuntu0.1 |
| requests | python | 2.20.0 |
| python-pip | Ubuntu:18.04:LTS | 9.0.1-2.3~ubuntu1.18.04.2 |
| requests | Ubuntu:16.04:LTS | 2.9.1-3ubuntu0.1 |
| requests | Ubuntu:14.04:LTS | 2.2.1-1ubuntu0.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | python-virtualenv | 0 |
| amazon:2 | python-requests | 0 |
| PyPI | requests | 0 |
| n/a | n/a | * |
Timeline
- Oct 9, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 4, 2026 CVE Updated
- Mar 6, 2026 Distribution Patch (84 in total, the first dated here)
- Mar 6, 2026 Security Advisory (90 in total, the first dated here)
- Sep 22, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-18074
vulnetix vdb fixes CVE-2018-18074
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-18074/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-3790-1 vendor-advisoryx_refsource_UBUNTU
- USN-3790-2 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2019:1754 vendor-advisoryx_refsource_SUSE
- RHSA-2019:2035 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2018-18074 advisory
- https://github.com/advisories/GHSA-x84v-xcm2-53pg advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2018-28.yaml advisory
- https://github.com/requests/requests url
- https://usn.ubuntu.com/3790-1 url
- https://usn.ubuntu.com/3790-2 url