Bug 1719501 (CVE-2019-12387)

Summary: CVE-2019-12387 python-twisted: Improper neutralization of CRLF characters in URIs and HTTP methods
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bbuckingham, bcourt, bkearney, btotty, cstratak, dbecker, hhudgeon, jjoyce, jschluet, kbasil, lhh, lpeer, lzap, mburns, mhroncok, mhulan, mmccune, python-maint, python-sig, rchan, rhos-maint, rjerrido, sclewis, sisharma, slinaber, tvignaud, vbellur, zebob.m
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 22:34:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1719502, 1719503, 1721518, 1723274, 1729865, 1731292, 1731293, 1731294    
Bug Blocks: 1719504    

Description Pedro Sampaio 2019-06-12 00:14:40 UTC
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.

Upstream patch:

https://github.com/twisted/twisted/commit/6c61fc4503ae39ab8ecee52d10f10ee2c371d7e2

References:

https://github.com/twisted/twisted/commit/6c61fc4503ae39ab8ecee52d10f10ee2c371d7e2

Comment 1 Pedro Sampaio 2019-06-12 00:16:01 UTC
Created python-twisted tracking bugs for this issue:

Affects: fedora-all [bug 1719503]

Comment 14 errata-xmlrpc 2020-03-31 19:21:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:1091 https://access.redhat.com/errata/RHSA-2020:1091

Comment 15 Product Security DevOps Team 2020-03-31 22:34:22 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-12387

Comment 17 Nick Tait 2021-04-03 16:11:19 UTC
Statement:

* This issue does not affect Red Hat Gluster Storage 3 and Red Hat Ceph Storage 2 and 3 because these products do not use the twisted web APIs.
* This issue does affect Red Hat Enterprise Linux 6. However, because this version is now in Maintenance Support 2 Phase and the flaw has a security impact of Moderate,  it is not currently planned to be addressed in future Red Hat Enterprise Linux 6 updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata
* In Red Hat OpenStack Platform, because the flaw has a lower impact and the fix would require a substantial amount of development, no update will be provided at this time for the RHOSP python-twisted package.