Skip to content
Fencer Intel
medium 6.1

CVE-2019-12387 json

Twisted CRLF Injection

published 7y ago modified 4mo ago also GHSA-6cc5-2vg4-cc7m , PYSEC-2019-128 , EUVD-2019-0146

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

Summary

In Twisted before 19.2.1, twisted.web did not validate or sanitize URIs or HTTP methods, allowing an attacker to inject invalid characters such as CRLF.

Patch / fix

  • pypi twisted 19.2.1
  • twisted twisted 19.2.1
  • twisted Debian 14, Debian 13, Debian 12 18.9.0-7

debian advisories DEBIAN-CVE-2019-12387

  • twisted Ubuntu 16.04 LTS 16.0.0-1ubuntu0.4
  • twisted Ubuntu 18.04 LTS 17.9.0-2ubuntu0.1
  • twisted Ubuntu Pro 14.04 LTS 13.2.0-1ubuntu1.2+esm1

ubuntu advisories UBUNTU-CVE-2019-12387

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-twisted-web RHEL 7 12.1.0-6.el7
  • tfm satellite capsule 6.6, satellite 6.6 5.0-7.el7sat
  • kobo satellite capsule 6.6, satellite 6.6 0.5.1-1.el7sat
  • pulp satellite capsule 6.6, satellite 6.6 2.19.1.1-1.el7sat
  • gofer satellite capsule 6.6, satellite 6.6 2.12.5-5.el7sat
  • future satellite capsule 6.6, satellite 6.6 0.16.0-11.el7sat
  • ostree satellite capsule 6.6, satellite 6.6 2017.1-2.atomic.el7
  • foreman satellite capsule 6.6, satellite 6.6 1.22.0.32-1.el7sat

red hat advisories RHSA-2020:1091RHSA-2019:3172

  • python-Twisted SLE Module for Web and Scripting 12, OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 +3 more 15.2.1-9.23.1
  • python-Twisted SLE Module for Web and Scripting 12, OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 +6 more 15.2.1-9.5.2

suse advisories SUSE-SU-2022:4074-1SUSE-SU-2019:2066-1

  • python-Twisted openSUSE Tumbleweed 21.7.0-3.2
  • python-Twisted Package Hub 15 17.9.0-bp150.4.3.1
  • python-Twisted openSUSE Leap 15.1, openSUSE Leap 15.0 17.9.0-lp151.3.3.1

opensuse advisories openSUSE-SU-2024:11212-1openSUSE-SU-2019:1785-1openSUSE-SU-2019:1760-1

  • py3-twisted Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 19.7.0-r0

alpine advisories ALPINE-CVE-2019-12387

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2019-12387 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-2019-12387 updated cvss 6.5

python-twisted: Improper neutralization of CRLF characters in URIs and HTTP methods

  • Red Hat Ceph Storage 2 calamari-server Red Hat Enterprise Linux 6 python-twisted-web Red Hat OpenStack Platform 9 (Mitaka) python-twisted Red Hat OpenStack Platform 10 (Newton) python-twisted Red Hat OpenStack Platform 13 (Queens) python-twisted Red Hat OpenStack Platform 14 (Rocky) python-twisted
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux Client Optional (v. 7) python-twisted-web 12.1.0-6.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-twisted-web 12.1.0-6.el7 Red Hat Enterprise Linux Server Optional (v. 7) python-twisted-web 12.1.0-6.el7 Red Hat Enterprise Linux Workstation Optional (v. 7) python-twisted-web 12.1.0-6.el7
    fixed: vendor fix RHSA-2020:1091
  • Red Hat Satellite 6.6 tfm 5.0-7.el7sat, kobo 0.5.1-1.el7sat, gofer 2.12.5-5.el7sat, pulp 2.19.1.1-1.el7sat, tfm-ror52 1.0-4.el7sat, future 0.16.0-11.el7sat, +448 more Red Hat Satellite Capsule 6.6 tfm 5.0-7.el7sat, kobo 0.5.1-1.el7sat, gofer 2.12.5-5.el7sat, pulp 2.19.1.1-1.el7sat, tfm-ror52 1.0-4.el7sat, future 0.16.0-11.el7sat, +239 more
    fixed: vendor fix RHSA-2019:3172
  • Red Hat Ceph Storage 2 python-twisted-core Red Hat Ceph Storage 3 python-twisted-core Red Hat OpenStack Platform 9 (Mitaka) Operational Tools python-twisted-core Red Hat Storage 3 python-twisted-core
    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

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

Exploits and checks

  • labs.twistedmatrix.com https://labs.twistedmatrix.com/2019/06/twisted-1921-released.html referenced PoC, tagged "exploit" by a source, unverified
  • twistedmatrix.com https://twistedmatrix.com/pipermail/twisted-python/2019-June/032352.html referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N
GitHub 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
pypi twisted
<19.2.1
19.2.1

Classification

Weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
  • CWE-93 Improper Neutralization of CRLF Sequences

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.