Skip to content
Noroxi
CVE-2019-9947· NVD / CVE Program· CNA mitre

An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.3.

An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.3. CRLF injection is possible if the attacker controls a url parameter, as demonstrated by the first argument to urllib.request.urlopen with \r\n (specifically in the path component of a URL that lacks a ? character) followed by an HTTP header or a Redis command. This is similar to the CVE-2019-9740 query string issue. This is fixed in: v2.7.17, v2.7.17rc1, v2.7.18, v2.7.18rc1; v3.5.10, v3.5.10rc1, v3.5.8, v3.5.8rc1, v3.5.8rc2, v3.5.9; v3.6.10, v3.6.10rc1, v3.6.11, v3.6.11rc1, v3.6.12, v3.6.9, v3.6.9rc1; v3.7.4, v3.7.4rc1, v3.7.4rc2, v3.7.5, v3.7.5rc1, v3.7.6, v3.7.6rc1, v3.7.7, v3.7.7rc1, v3.7.8, v3.7.8rc1, v3.7.9.

MediumCVSS 6.1 · v3.1—No exploit Fix available
Published
Mar 23, 2019
Updated
Jun 16, 2026
EPSS
5.3% · 92th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

26

Monitor

Low priority for now.

CVSS
24 / 40 · 6.1 / 10
CISA KEV
0 / 30 · Not listed
EPSS
2 / 30 · 5.3%

Affected systems

VendorProduct
pythonpython

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • python python2.7.0 and later · before 2.7.17
  • python python3.5.0 and later · before 3.5.8
  • python python3.6.0 and later · before 3.6.9
  • python python3.7.0 and later · before 3.7.4

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8python-psycopg2-docbefore 2.7.5-7.module_el8.6.0+2781+fed64c132.7.5-7.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-attrsbefore 17.4.0-10.module_el8.6.0+2781+fed64c1317.4.0-10.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-chardetbefore 3.0.4-10.module_el8.6.0+2781+fed64c133.0.4-10.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-coveragebefore 4.5.1-4.module_el8.6.0+2781+fed64c134.5.1-4.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-Cythonbefore 0.28.1-7.module_el8.6.0+2781+fed64c130.28.1-7.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-dnsbefore 1.15.0-10.module_el8.6.0+2781+fed64c131.15.0-10.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-docsbefore 2.7.16-2.module_el8.6.0+2781+fed64c132.7.16-2.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-docs-infobefore 2.7.16-2.module_el8.6.0+2781+fed64c132.7.16-2.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-docutilsbefore 0.14-12.module_el8.6.0+2781+fed64c130.14-12.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-funcsigsbefore 1.0.2-13.module_el8.6.0+2781+fed64c131.0.2-13.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-idnabefore 2.5-7.module_el8.6.0+2781+fed64c132.5-7.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-ipaddressbefore 1.0.18-6.module_el8.6.0+2781+fed64c131.0.18-6.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-markupsafebefore 0.23-19.module_el8.6.0+2781+fed64c130.23-19.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-mockbefore 2.0.0-13.module_el8.6.0+2781+fed64c132.0.0-13.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-pluggybefore 0.6.0-8.module_el8.6.0+2781+fed64c130.6.0-8.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-psycopg2before 2.7.5-7.module_el8.6.0+2781+fed64c132.7.5-7.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-psycopg2-debugbefore 2.7.5-7.module_el8.6.0+2781+fed64c132.7.5-7.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-psycopg2-testsbefore 2.7.5-7.module_el8.6.0+2781+fed64c132.7.5-7.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-pybefore 1.5.3-6.module_el8.6.0+2781+fed64c131.5.3-6.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-PyMySQLbefore 0.8.0-10.module_el8.6.0+2781+fed64c130.8.0-10.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-pysocksbefore 1.6.8-6.module_el8.6.0+2781+fed64c131.6.8-6.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-pytestbefore 3.4.2-13.module_el8.6.0+2781+fed64c133.4.2-13.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-pytest-mockbefore 1.9.0-4.module_el8.6.0+2781+fed64c131.9.0-4.module_el8.6.0+2781+fed64c13
AlmaLinux:8python2-pytzbefore 2017.2-12.module_el8.6.0+2781+fed64c132017.2-12.module_el8.6.0+2781+fed64c13

+96

Other highest-scoring records for the same primary product.

  • CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 all
    47Plan
  • CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot
    47Plan
  • CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Pyth
    46Plan
  • CVE-2014-4650The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which al
    46Plan
  • CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C
    45Plan
  • CVE-2020-27619In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.
    42Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:python-psycopg2-doc2.7.5-7.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-attrs17.4.0-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-chardet3.0.4-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-coverage4.5.1-4.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-Cython0.28.1-7.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-dns1.15.0-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-docs2.7.16-2.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-docs-info2.7.16-2.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-docutils0.14-12.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-funcsigs1.0.2-13.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-idna2.5-7.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
almalinux:python2-PyMySQL0.8.0-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8Package registry (OSV)
debian:python2.72.7.16-3 · Debian:11Package registry (OSV)
debian:python3.43.4.2-1+deb8u3 · Debian:8Package registry (OSV)
debian:python3.53.5.3-1+deb9u2 · Debian:9Package registry (OSV)
opensuse:python2.7.14-lp150.6.21.1 · openSUSE:Leap 15.0Package registry (OSV)
opensuse:python-base2.7.14-lp151.10.10.2 · openSUSE:Leap 15.1Package registry (OSV)
opensuse:python-doc2.7.14-lp151.10.10.1 · openSUSE:Leap 15.1Package registry (OSV)
opensuse:python3103.10.0rc1-4.2 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python3113.11.0b1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python3123.12.0a7-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python3133.13.0~b3-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python3143.14.0~a1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python3153.15.0~a1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python383.8.12-1.2 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python393.9.7-2.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:python0:2.7.5-86.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:python-debuginfo0:2.7.5-86.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:python-libs0:2.7.5-86.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:python27-python0:2.7.16-4.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)

+32

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
low · data can be read
Integrity
low · data or configuration can be modified
Availability
none

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality impact
Low
Integrity impact
Low
Availability impact
None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records