CVEfocus › CVE database › CVE-2019-18348

CVE-2019-18348

CVSS 5.4 MediumEPSS 3.5% (higher than 89% of CVEs)Published 2019-10-23Updated 2026-10-14Assigner: mitre

An issue was discovered in urllib2 in Python 2.x through 2.7.17 and urllib in Python 3.x through 3.8.0. 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 host component of a URL) followed by an HTTP header. This is similar to the CVE-2019-9740 query string issue and the CVE-2019-9947 path string issue. (This is not exploitable when glibc has CVE-2016-10739 fixed.). This is fixed in: v2.7.18, v2.7.18rc1; v3.5.10, v3.5.10rc1; v3.6.11, v3.6.11rc1, v3.6.12; v3.7.8, v3.7.8rc1, v3.7.9; v3.8.3, v3.8.3rc1, v3.8.4, v3.8.4rc1, v3.8.5, v3.8.6, v3.8.6rc1.

CWE-74

What to do

Fixed builds are available from Alpine, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

14Fixed
5Fix pending
21Will not fix
48Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04python3.8Fixed3.8.2-1ubuntu1.1UBUNTU-CVE-2019-18348
Ubuntu 18.04python2.7Fixed2.7.17-1~18.04ubuntu1UBUNTU-CVE-2019-18348
Ubuntu 18.04python3.6Fixed3.6.9-1~18.04ubuntu1UBUNTU-CVE-2019-18348
Ubuntu 18.04python3.7Fix pending3.7.5-2ubuntu1~18.04.2+esm3 (Ubuntu Pro)UBUNTU-CVE-2019-18348
Ubuntu 18.04python3.8Fix pending3.8.0-3ubuntu1~18.04.2+esm2 (Ubuntu Pro)UBUNTU-CVE-2019-18348
Ubuntu 16.04python2.7Fixed2.7.12-1ubuntu0~16.04.11UBUNTU-CVE-2019-18348
Ubuntu 16.04python3.5Fixed3.5.2-2ubuntu0~16.04.10UBUNTU-CVE-2019-18348
Ubuntu 14.04python2.7Fix pending2.7.6-8ubuntu0.6+esm5 (Ubuntu Pro)UBUNTU-CVE-2019-18348
Ubuntu 14.04python3.4Fix pending3.4.3-1ubuntu1~14.04.7+esm6 (Ubuntu Pro)UBUNTU-CVE-2019-18348
Ubuntu 14.04python3.5Fix pending3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2019-18348
Red Hat Enterprise Linux 8platform-pythonNot affected
Red Hat Enterprise Linux 8platform-python-debugNot affected
Red Hat Enterprise Linux 8platform-python-develNot affected
Red Hat Enterprise Linux 8python-PyMySQLNot affected
Red Hat Enterprise Linux 8python-distroNot affected
Red Hat Enterprise Linux 8python-docsNot affected
Red Hat Enterprise Linux 8python-docutilsNot affected
Red Hat Enterprise Linux 8python-noseNot affected
Red Hat Enterprise Linux 8python-nose-docsNot affected
Red Hat Enterprise Linux 8python-pygmentsNot affected
Red Hat Enterprise Linux 8python-pymongoNot affected
Red Hat Enterprise Linux 8python-pymongo-docNot affected
Red Hat Enterprise Linux 8python-sqlalchemyNot affected
Red Hat Enterprise Linux 8python-sqlalchemy-docNot affected
Red Hat Enterprise Linux 8python-virtualenvNot affected
Red Hat Enterprise Linux 8python-virtualenv-docNot affected
Red Hat Enterprise Linux 8python-wheelNot affected
Red Hat Enterprise Linux 8python2Not affected
Red Hat Enterprise Linux 8python2-debugNot affected
Red Hat Enterprise Linux 8python2-develNot affected
Red Hat Enterprise Linux 8python2-libsNot affected
Red Hat Enterprise Linux 8python2-testNot affected
Red Hat Enterprise Linux 8python2-tkinterNot affected
Red Hat Enterprise Linux 8python2-toolsNot affected
Red Hat Enterprise Linux 8python3Not affected
Red Hat Enterprise Linux 8python3-PyMySQLNot affected
Red Hat Enterprise Linux 8python3-bsonNot affected
Red Hat Enterprise Linux 8python3-distroNot affected
Red Hat Enterprise Linux 8python3-docsNot affected
Red Hat Enterprise Linux 8python3-docutilsNot affected
Red Hat Enterprise Linux 8python3-idleNot affected
Red Hat Enterprise Linux 8python3-libsNot affected
Red Hat Enterprise Linux 8python3-noseNot affected
Red Hat Enterprise Linux 8python3-pygmentsNot affected
Red Hat Enterprise Linux 8python3-pymongoNot affected
Red Hat Enterprise Linux 8python3-pymongo-gridfsNot affected
Red Hat Enterprise Linux 8python3-scipyNot affected
Red Hat Enterprise Linux 8python3-sqlalchemyNot affected
Red Hat Enterprise Linux 8python3-testNot affected
Red Hat Enterprise Linux 8python3-tkinterNot affected
Red Hat Enterprise Linux 8python3-virtualenvNot affected
Red Hat Enterprise Linux 8python3-wheelNot affected
Red Hat Enterprise Linux 8python3-wheel-wheelNot affected
Red Hat Enterprise Linux 8python36Not affected
Red Hat Enterprise Linux 8python36-debugNot affected
Red Hat Enterprise Linux 8python36-develNot affected
Red Hat Enterprise Linux 8python36-rpm-macrosNot affected
Red Hat Enterprise Linux 8scipyNot affected
Red Hat Enterprise Linux 7pythonWill not fix
Will not fix
Red Hat Enterprise Linux 7python-debugWill not fix
Will not fix
Red Hat Enterprise Linux 7python-develWill not fix
Will not fix
Red Hat Enterprise Linux 7python-libsWill not fix
Will not fix
Red Hat Enterprise Linux 7python-testWill not fix
Will not fix
Red Hat Enterprise Linux 7python-toolsWill not fix
Will not fix
Red Hat Enterprise Linux 7python3Will not fix
Will not fix
Red Hat Enterprise Linux 7python3-debugWill not fix
Will not fix
Red Hat Enterprise Linux 7python3-develWill not fix
Will not fix
Red Hat Enterprise Linux 7python3-idleWill not fix
Will not fix
Red Hat Enterprise Linux 7python3-libsWill not fix
Will not fix
Red Hat Enterprise Linux 7python3-testWill not fix
Will not fix
Red Hat Enterprise Linux 7python3-tkinterWill not fix
Will not fix
Red Hat Enterprise Linux 7tkinterWill not fix
Will not fix
Red Hat Enterprise Linux 6pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-testWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-toolsWill not fix
Out of support scope
Red Hat Enterprise Linux 6tkinterWill not fix
Out of support scope
Red Hat Enterprise Linux 5pythonWill not fix
Out of support scope
Alpine Linux 3.15python2Fixed2.7.18-r0ALPINE-CVE-2019-18348
Alpine Linux 3.14python2Fixed2.7.18-r0ALPINE-CVE-2019-18348
Alpine Linux 3.13python2Fixed2.7.18-r0ALPINE-CVE-2019-18348
Alpine Linux 3.12python2Fixed2.7.18-r0ALPINE-CVE-2019-18348
Alpine Linux 3.11python2Fixed2.7.18-r0ALPINE-CVE-2019-18348
Alpine Linux 3.11python2-tkinterFixed2.7.18-r0ALPINE-CVE-2019-18348
Alpine Linux 3.10python2Fixed2.7.18-r0ALPINE-CVE-2019-18348
Alpine Linux 3.10python2-tkinterFixed2.7.18-r0ALPINE-CVE-2019-18348
Alpine Linux 3.9python2Fixed2.7.18-r0ALPINE-CVE-2019-18348

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.