# CVE-2019-18348: CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.38%, higher than 89% of CVEs (2026-12-01)
- Published: 2019-10-23T16:31:22.000Z
- Modified: 2026-10-14T07:16:50.433Z
- Also known as: PSF-2019-7
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- https://github.com/python/cpython: before 09d8172837b6985c4ad90ee025f6b5a554a9f0ac; before 34f85af3229f86c004a954c3f261ceea1f5e9f95; before 83fc70159b24f5b11a5ef87c9b05c2cf4c7faeba; before 9165addc22d05e776a54319a8531ebd0b2fe01ef; before e176e0c105786e9f476758eb5438c57223b65e7f; before ff69c9d12c1b06af58e5eae5db4630cedd94740e
- python python: from 2.0 up to 2.7.17; from 3.0 before 3.5.10; from 3.6.0 before 3.6.11; from 3.7.0 before 3.7.8; from 3.8.0 before 3.8.3

## Every score

- CISA-ADP: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M34WOYCDKTDE5KLUACE2YIEH7D37KHRX/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JCPGLTTOBB3QEARDX4JOYURP6ELNNA2V/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4X3HW5JRZ7GCPSR7UHJOLD7AWLTQCDVR/> (vendor-advisory)
- <https://usn.ubuntu.com/4333-1/> (technical-description, vendor-advisory)
- <https://usn.ubuntu.com/4333-2/> (technical-description, vendor-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00041.html> (mailing-list, technical-description, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UESGYI5XDAHJBATEZN3MHNDUBDH47AS6/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5NSAX4SC3V64PGZUPH7PRDLSON34Q5A/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html> (mailing-list, technical-description)
- <https://www.oracle.com/security-alerts/cpuoct2020.html> (technical-description)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1727276> (issue-tracking, third-party-advisory)
- <https://bugs.python.org/issue30458#msg347282> (issue-tracking, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20191107-0004/> (technical-description)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://bugs.python.org/issue38576> (report)

## Sources

- CVE List: [CVE-2019-18348](https://www.cve.org/CVERecord?id=CVE-2019-18348), CVE Terms of Use, modified 2026-10-14
- Python Software Foundation: [PSF-2019-7](https://osv.dev/vulnerability/PSF-2019-7), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2019-18348](https://nvd.nist.gov/vuln/detail/CVE-2019-18348), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2019-18348 · Whole record: https://cve.day/CVE-2019-18348.json · Rebuilt by cve.day 2026-11-25T22:57:47.655Z
