{"id":"CVE-2019-18348","aliases":["CVE-2019-18348","PSF-2019-7"],"related":[],"kind":"vulnerability","state":"published","title":"CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se detectó un problema en urllib2 en Python versiones 2.x hasta 2.7.17 y urllib en Python versiones 3.x hasta 3.8.0. La inyección de CRLF es posible si el atacante controla un parámetro url, como es demostrado por el primer argumento para urllib.request.urlopen con \\ r\\n (específicamente en el componente host de una URL) seguido de un encabezado HTTP. Esto es similar al problema de la cadena de consulta de CVE-2019-9740 y al problema de la cadena de ruta de CVE-2019-9947. (Esto no es explotable cuando glibc tiene corregido el CVE-2016-10739). Esto está corregido en las versiones: 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","source":"nvd"}],"published":"2019-10-23T16:31:22.000Z","modified":"2026-10-14T07:16:50.433Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"09d8172837b6985c4ad90ee025f6b5a554a9f0ac"},{"type":"git","status":"affected","fixed":"34f85af3229f86c004a954c3f261ceea1f5e9f95"},{"type":"git","status":"affected","fixed":"83fc70159b24f5b11a5ef87c9b05c2cf4c7faeba"},{"type":"git","status":"affected","fixed":"9165addc22d05e776a54319a8531ebd0b2fe01ef"},{"type":"git","status":"affected","fixed":"e176e0c105786e9f476758eb5438c57223b65e7f"},{"type":"git","status":"affected","fixed":"ff69c9d12c1b06af58e5eae5db4630cedd94740e"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"status":"affected","introduced":"2.0","lastAffected":"2.7.17"},{"status":"affected","introduced":"3.0","fixed":"3.5.10"},{"status":"affected","introduced":"3.6.0","fixed":"3.6.11"},{"status":"affected","introduced":"3.7.0","fixed":"3.7.8"},{"status":"affected","introduced":"3.8.0","fixed":"3.8.3"}],"vendor":"python","product":"python","cpe":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M34WOYCDKTDE5KLUACE2YIEH7D37KHRX/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JCPGLTTOBB3QEARDX4JOYURP6ELNNA2V/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4X3HW5JRZ7GCPSR7UHJOLD7AWLTQCDVR/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://usn.ubuntu.com/4333-1/","tags":["technical-description","vendor-advisory","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://usn.ubuntu.com/4333-2/","tags":["technical-description","vendor-advisory","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00041.html","tags":["mailing-list","technical-description","vendor-advisory","x-refsource-suse","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UESGYI5XDAHJBATEZN3MHNDUBDH47AS6/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5NSAX4SC3V64PGZUPH7PRDLSON34Q5A/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html","tags":["mailing-list","technical-description","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2020.html","tags":["technical-description","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1727276","tags":["issue-tracking","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugs.python.org/issue30458#msg347282","tags":["issue-tracking","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20191107-0004/","tags":["technical-description","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://bugs.python.org/issue38576","tags":["report"],"sources":["psf"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-07T18:00:08.130Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-18348","url":"https://www.cve.org/CVERecord?id=CVE-2019-18348","licence":"CVE Terms of Use","modified":"2026-10-14T06:54:53.676Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2019-7","url":"https://osv.dev/vulnerability/PSF-2019-7","licence":"CC-BY-4.0","modified":"2025-10-09T01:03:31.710Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-18348","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-18348","licence":"Public domain","modified":"2026-10-14T07:16:50.433Z"}],"updatedAt":"2026-11-25T22:57:47.655Z","epss":{"score":0.03384,"percentile":0.89103,"date":"2026-12-01T12:00:22.000Z"}}