VDB

CVE-2022-0391

CVE-2022-0391 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
pythonAmazon Linux2.7.18-1.amzn2.0.5
python-develAmazon Linux2.7.18-1.amzn2.0.5
tkinterAmazon Linux2.7.18-1.amzn2.0.5
alpine/python-3.10alpine3.10.0-beta1, 3.9.5, 3.8.11, 3.7.11, 3.6.14
alpine/python-3.13alpine3.10.0-beta1, 3.9.5, 3.8.11, 3.7.11, 3.6.14
pythonDHI3.10.0-beta1, 3.9.5, 3.8.11, 3.7.11, 3.6.14
debian/python-3.13debian3.10.0-beta1, 3.9.5, 3.8.11, 3.7.11, 3.6.14

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
n/apythonpython 3.10.0b1, python 3.9.5, python 3.8.11, python 3.7.11, python 3.6.14
amazon:2python0
amazon:2python-devel0
amazon:2tkinter0
n/apythonpython 3.10.0b1, python 3.9.5, python 3.8.11, python 3.7.11, python 3.6.14
amazon:2python-debug0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2python-tools0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2python-test0
amazon:2python-libs0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›