CVE-2018-18074: Insufficiently Protected Credentials in Requests

CVE-2018-18074 · Severity: low · CVSS 3.1 · Published 2018-10-09

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.

Technologies: requests (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2018-18074 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2018-18074 being exploited in the wild.
How severe is CVE-2018-18074?
Low severity, with a CVSS score of 3.1, published 9 October 2018.
Which products and versions are affected?
requests (PyPI) ECOSYSTEM:introduced=0,fixed=2.20.0, GIT:introduced=0,fixed=c45d7c49ea75133e52ab22a8e9e13173938e36ff|ECOSYSTEM:introduced=0,fixed=2.20.0.
Is there a fix for CVE-2018-18074?
Yes. requests (PyPI): upgrade to 2.20.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2018-18074?
Check whether you run requests (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • requests (PyPI): upgrade to 2.20.0 or later
    pip install "requests>=2.20.0"

Affected products

  • requests (PyPI) ECOSYSTEM:introduced=0,fixed=2.20.0, GIT:introduced=0,fixed=c45d7c49ea75133e52ab22a8e9e13173938e36ff|ECOSYSTEM:introduced=0,fixed=2.20.0

Identifiers

  • CVE-2018-18074
  • GHSA-x84v-xcm2-53pg
  • PYSEC-2018-28

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.