# CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline and tabs.

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/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): 8.54%, higher than 95% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-09T00:00:00.000Z
- Modified: 2026-10-14T13:17:13.947Z
- Also known as: PSF-2022-8, BIT-LIBPYTHON-2022-0391, BIT-PYTHON-2022-0391, BIT-PYTHON-MIN-2022-0391
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: redhat

## Description

A flaw was found in Python, specifically within the urllib.parse module. This module helps break Uniform Resource Locator (URL) strings into components. The issue involves how the urlparse method does not sanitize input and allows characters like '\r' and '\n' in the URL path. This flaw allows an attacker to input a crafted URL, leading to injection attacks. This flaw affects Python versions prior to 3.10.0b1, 3.9.5, 3.8.11, 3.7.11 and 3.6.14.

(As written by CVE List.)

## Affected

- python: python 3.10.0b1, python 3.9.5, python 3.8.11, python 3.7.11, python 3.6.14
- https://github.com/python/cpython: before 491fde0161d5e527eeff8586dd3972d7d3a631a7; before 515a7bc4e13645d0945b46a8e1d9102b918cd407; before 6c472d3a1d334d4eeb4a25eba7bf3b01611bf667; before 76cd81d60310d65d01f9d7b48a8985d8ab89c8b4; before f4dac7ec55477a6c5d965e594e74bd6bda786903
- python python: before 3.6.14; from 3.7.0 before 3.7.11; from 3.8.0 before 3.8.11; from 3.9.0 before 3.9.5; 3.10.0
- netapp active_iq_unified_manager: no versions given
- netapp hci: no versions given
- netapp management_services_for_element_software: no versions given
- netapp ontap_select_deploy_administration_utility: no versions given
- netapp solidfire,_enterprise_sds_&_hci_storage_node: no versions given
- netapp hci_compute_node: no versions given
- fedoraproject fedora: 34; 35
- oracle http_server: 12.2.1.3.0; 12.2.1.4.0
- oracle zfs_storage_appliance_kit: 8.8
- libpython (Bitnami): before 3.6.14; from 3.7.0 before 3.7.11; from 3.8.0 before 3.8.11; from 3.9.0 before 3.9.5
- python (Bitnami): before 3.6.14; from 3.7.0 before 3.7.11; from 3.8.0 before 3.8.11; from 3.9.0 before 3.9.5
- python-min (Bitnami): before 3.6.14; from 3.7.0 before 3.7.11; from 3.8.0 before 3.8.11; from 3.9.0 before 3.9.5

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugs.python.org/issue43882> (exploit, advisory, issue-tracking, patch, report, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UDBDBAU6HUPZHISBOARTXZ5GKHF2VH5U/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CSD2YBXP3ZF44E44QMIIAR5VTO35KTRB/> (vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (advisory, patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20220225-0009/> (advisory, third-party-advisory)
- <https://security.gentoo.org/glsa/202305-02> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html> (mailing-list, web)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00013.html> (web)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html> (web)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2047376> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0391> (web)

## Sources

- CVE List: [CVE-2022-0391](https://www.cve.org/CVERecord?id=CVE-2022-0391), CVE Terms of Use, modified 2026-10-14
- Python Software Foundation: [PSF-2022-8](https://osv.dev/vulnerability/PSF-2022-8), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2022-0391](https://nvd.nist.gov/vuln/detail/CVE-2022-0391), Public domain, modified 2026-10-14
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2022-0391](https://osv.dev/vulnerability/BIT-LIBPYTHON-2022-0391), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-2022-0391](https://osv.dev/vulnerability/BIT-PYTHON-2022-0391), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2022-0391](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2022-0391), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-0391 · Whole record: https://cve.day/CVE-2022-0391.json · Rebuilt by cve.day 2026-11-25T22:58:09.596Z
