Original 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.
Affected software
- Python < 3.6.14≥ 3.7.0 < 3.7.11= 3.10.0≥ 3.9.0 < 3.9.5≥ 3.8.0 < 3.8.11 Fixed in: 3.6.14, 3.7.11, 3.9.5, 3.8.11 exact match
Details
- Published
- 2022-02-09
- Last modified
- 2026-10-14
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- CWE
- CWE-74
- EPSS (30-day exploit probability)
- 8.54% (percentile 95)
References
- cve.org/CVE-2022-0391
- nvd.nist.gov/vuln/detail/CVE-2022-0391
- bugs.python.org/issue43882
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C...
- www.oracle.com/security-alerts/cpuapr2022.html
- security.netapp.com/advisory/ntap-20220225-0009/
- security.gentoo.org/glsa/202305-02
- lists.debian.org/debian-lts-announce/2023/09/msg00022.html
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.