CVE-2014-7143: PYSEC-2019-212 - Python Twisted 14.0 trustRoot is not respected in HTTP client

CVE-2014-7143 · Severity: low · CVSS 3.1 · Published 2019-11-12

Python Twisted is a networking framework used to build internet applications and services. A flaw in version 14.0.0 causes the HTTP client to ignore the trustRoot certificate validation setting, potentially allowing an attacker to perform man-in-the-middle attacks by presenting an untrusted certificate that would normally be rejected. This could lead to interception and modification of sensitive data transmitted over HTTPS connections.

Technologies: twisted (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2014-7143 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2014-7143 being exploited in the wild.
How severe is CVE-2014-7143?
Low severity, with a CVSS score of 3.1, published 12 November 2019.
Which products and versions are affected?
twisted (PyPI) ECOSYSTEM:introduced=0,fixed=14.0.1, ECOSYSTEM:introduced=14.0.0,fixed=14.0.1.
Is there a fix for CVE-2014-7143?
Yes. twisted (PyPI): upgrade to 14.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2014-7143 attacked?
It is attacked over the network.
Am I affected by CVE-2014-7143?
Check whether you run twisted (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

  • twisted (PyPI): upgrade to 14.0.1 or later
    pip install "twisted>=14.0.1"

Technical details

The vulnerability is a certificate validation bypass (CWE-295) in Twisted 14.0.0's HTTP client implementation. The trustRoot parameter, which specifies the root certificate authorities to trust, is not properly enforced during SSL/TLS handshake validation. An attacker on the network can exploit this by presenting a forged certificate that would normally be rejected if trustRoot validation were properly implemented. The attack requires network proximity and no authentication or user interaction. The vulnerability was fixed in Twisted 14.0.1.

Affected products

  • Twisted Twisted 14.0.0

Identifiers

  • CVE-2014-7143
  • GHSA-3c45-wgjp-7v9r
  • PYSEC-2019-212

Timeline

  • 2014-09-22: disclosed
  • 2019-12-17: advisory
  • 2014: patched: Fixed in version 14.0.1

References

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