Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680246 (CVE-2019-9740) - <dev-lang/python-{2.7.17,3.6.9,3.7.4}: CRLF injection in urllib (CVE-2019-9740)
Summary: <dev-lang/python-{2.7.17,3.6.9,3.7.4}: CRLF injection in urllib (CVE-2019-9740)
Alias: CVE-2019-9740
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
Whiteboard: A3 [glsa+ cve]
Depends on: CVE-2018-20852 689832 701116
  Show dependency tree
Reported: 2019-03-13 14:06 UTC by Agostino Sarubbo
Modified: 2020-03-15 15:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2019-03-13 14:06:33 UTC
From ${URL} :

An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.2. CRLF injection is possible if the 
attacker controls a url parameter, as demonstrated by the first argument to urllib.request.urlopen with \r\n followed by an HTTP header or a 
Redis command.


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Hanno Böck gentoo-dev 2019-05-02 18:34:13 UTC
According to the upstream bug version 1.24.3 now fixes this:
Comment 2 Larry the Git Cow gentoo-dev 2019-07-14 13:05:09 UTC
The bug has been referenced in the following commit(s):

commit 1cd1842cd013485101789106c7b25c8999cff9e9
Author:     Michał Górny <>
AuthorDate: 2019-07-14 12:46:56 +0000
Commit:     Michał Górny <>
CommitDate: 2019-07-14 12:48:20 +0000

    dev-lang/python: Bump to 3.6.9
    Signed-off-by: Michał Górny <>

 dev-lang/python/Manifest            |   1 +
 dev-lang/python/python-3.6.9.ebuild | 349 ++++++++++++++++++++++++++++++++++++
 2 files changed, 350 insertions(+)
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-26 13:58:40 UTC
Patch included in 2.7.17 which is not yet in repository.

Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-03 08:30:35 UTC
All affected versions should be gone now.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2020-03-15 15:45:27 UTC
Added to an existing GLSA request.
Comment 6 GLSAMaker/CVETool Bot gentoo-dev 2020-03-15 15:58:52 UTC
This issue was resolved and addressed in
 GLSA 202003-26 at
by GLSA coordinator Thomas Deutschmann (whissi).