CVE-2022-0391
Reported by redhat · Published February 9, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| python-devel | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| tkinter | Amazon Linux | 2.7.18-1.amzn2.0.5 |
| alpine/python-3.10 | alpine | 3.10.0-beta1, 3.9.5, 3.8.11, 3.7.11, 3.6.14 |
| alpine/python-3.13 | alpine | 3.10.0-beta1, 3.9.5, 3.8.11, 3.7.11, 3.6.14 |
| python | DHI | 3.10.0-beta1, 3.9.5, 3.8.11, 3.7.11, 3.6.14 |
| debian/python-3.13 | debian | 3.10.0-beta1, 3.9.5, 3.8.11, 3.7.11, 3.6.14 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | python | python 3.10.0b1, python 3.9.5, python 3.8.11, python 3.7.11, python 3.6.14 |
| amazon:2 | python | 0 |
| amazon:2 | python-devel | 0 |
| amazon:2 | tkinter | 0 |
| n/a | python | python 3.10.0b1, python 3.9.5, python 3.8.11, python 3.7.11, python 3.6.14 |
| amazon:2 | python-debug | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python-test | 0 |
| amazon:2 | python-libs | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
Timeline
- Jan 31, 2022 CVE Published
- Feb 10, 2022 EPSS Score (30 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jun 1, 2026 Security Advisory (12 in total, the first dated here)
- Jul 12, 2026 Coalition ESS Score
- Sep 20, 2026 CVE Updated
- Nov 22, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-0391
vulnetix vdb fixes CVE-2022-0391
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-0391/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-ef99a016f6 vendor-advisory
- FEDORA-2022-18ad73aba6 vendor-advisory
- GLSA-202305-02 vendor-advisory
- [debian-lts-announce] 20230920 [SECURITY] [DLA 3575-1] python2.7 security update mailing-list
- https://lists.debian.org/debian-lts-announce/2025/03/msg00013.html url
- https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url