CVE-2019-12387 json
Twisted CRLF Injection
published 2019-06-10 7 y ago modified 2026-06-17 4 mo 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
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-twistedaffected: 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.el7fixed: 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 morefixed: 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-corenot 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-08).
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
References
-
github.com
/twisted/twisted/commit/6c61fc4503ae39ab8ecee52d10f10ee2c371d7e2
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuapr2020.html
web, patch, third-party-advisory
-
labs.twistedmatrix.com
/2019/06/twisted-1921-released.html
web, exploit, release-notes, vendor-advisory
-
twistedmatrix.com
/pipermail/twisted-python/2019-June/032352.html
web, exploit, release-notes, vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-07/msg00030.html
vendor-advisory, web, broken-link
-
lists.opensuse.org
/opensuse-security-announce/2019-07/msg00042.html
vendor-advisory, web, broken-link
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2G5RPDQ4BNB336HL6WW5ZJ344MAWNN7N/
vendor-advisory
-
usn.ubuntu.com
/4308-2/
vendor-advisory, third-party-advisory, web
-
usn.ubuntu.com
/4308-1/
vendor-advisory, third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2019-12387
advisory
-
github.com
/advisories/GHSA-6cc5-2vg4-cc7m
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2019-128.yaml
web
-
github.com
/twisted/twisted
package
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2G5RPDQ4BNB336HL6WW5ZJ344MAWNN7N
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2G5RPDQ4BNB336HL6WW5ZJ344MAWNN7N
web
-
usn.ubuntu.com
/4308-1
web
-
usn.ubuntu.com
/4308-2
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2G5RPDQ4BNB336HL6WW5ZJ344MAWNN7N/
web
Sources
- CVE List CVE-2019-12387
- GitHub Advisory GHSA-6cc5-2vg4-cc7m
- NVD CVE-2019-12387
- OSV PYSEC-2019-128
Fencer Vulns 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.