CVE-2022-0391

Exp

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.

Published: 2022-02-09 Last update: 2025-12-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-0391 is rated High Exploit Risk (72.6/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.21%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2022-0391

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2022-0391

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-01 1.32% 1.21% -0.11%
2 2026-03-04 1.92% 1.32% -0.59%
3 2026-03-01 1.92%

Full EPSS history (30 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-0391

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 134c704f-9b21-4f2e-91b3-4a467353bcc0
5.0 2.0 MEDIUM
AV:N/AC:L/Au:N/C:N/I:P/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:N)
No confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:N)
No availability impact.
10.0 2.9 [email protected]

Weakness enumeration for CVE-2022-0391

OS Trackers for CVE-2022-0391

vendor priority summary link
debian not yet assigned CVE-2022-0391 not yet assigned priority: Debian including 3 source packages (pypy3, python2.7, python3.9), 7 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 7. https://security-tracker.debian.org/tracker/CVE-2022-0391
gentoo high CVE-2022-0391: 1 GLSA(s) (202305-02), 2 atom(s) (dev-lang/python, dev-python/pypy3); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-0391
redhat medium https://access.redhat.com/security/cve/CVE-2022-0391
suse medium https://www.suse.com/security/cve/CVE-2022-0391/
ubuntu medium CVE-2022-0391 medium priority: Ubuntu including 8 source packages (python2.7, python3.10, …), 112 status rows across 14 suites (bionic, focal, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 83, released 13, needs-triage 7, ignored 4, not-affected 4, needed 1. https://ubuntu.com/security/CVE-2022-0391

Affected software / configurations for CVE-2022-0391

Vendor Product Version Raw CPE
python python < 3.6.14 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.7.0, < 3.7.11 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.8.0, < 3.8.11 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.9.0, < 3.9.5 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python 3.10.0 cpe:2.3:a:python:python:3.10.0:alpha1:*:*:*:*:*:*
python python 3.10.0 cpe:2.3:a:python:python:3.10.0:alpha2:*:*:*:*:*:*
python python 3.10.0 cpe:2.3:a:python:python:3.10.0:alpha3:*:*:*:*:*:*
python python 3.10.0 cpe:2.3:a:python:python:3.10.0:alpha4:*:*:*:*:*:*
python python 3.10.0 cpe:2.3:a:python:python:3.10.0:alpha5:*:*:*:*:*:*
python python 3.10.0 cpe:2.3:a:python:python:3.10.0:alpha6:*:*:*:*:*:*
netapp active_iq_unified_manager cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vsphere:*:*
netapp hci cpe:2.3:a:netapp:hci:-:*:*:*:*:*:*:*
netapp management_services_for_element_software cpe:2.3:a:netapp:management_services_for_element_software:-:*:*:*:*:*:*:*
netapp ontap_select_deploy_administration_utility cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*
netapp solidfire\,_enterprise_sds_\&_hci_storage_node cpe:2.3:a:netapp:solidfire\,_enterprise_sds_\&_hci_storage_node:-:*:*:*:*:*:*:*
netapp hci_compute_node cpe:2.3:h:netapp:hci_compute_node:-:*:*:*:*:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
oracle http_server 12.2.1.3.0 cpe:2.3:a:oracle:http_server:12.2.1.3.0:*:*:*:*:*:*:*
oracle http_server 12.2.1.4.0 cpe:2.3:a:oracle:http_server:12.2.1.4.0:*:*:*:*:*:*:*
oracle zfs_storage_appliance_kit 8.8 cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*

References for CVE-2022-0391

cvelogic Threat Intelligence