CVE Tools

CVE-2022-0391

CVE-2022-0391 is an injection in Python (CVSS 7.5, High).

Public exploit available. Not confirmed exploited in the wild yet. Fixed in 3.6.14.

Check it yourself

OpenVAS · 54 checks

e.g. OID 1.3.6.1.4.1.25623.1.0.147630

Run the check

Published Updated Sources: CVE.org, NVD, BDU, CSAF

What to do

Find your product and version, then upgrade to the build on the right.

  • N/a PythonAffected: python 3.10.0b1, python 3.9.5, python 3.8.11, python 3.7.11, python 3.6.14Upgrade to: not statedStated by: CVE record
  • PythonAffected: < 3.6.14Upgrade to: 3.6.14Stated by: NVD
  • Red Hat Inc. Red Hat Enterprise LinuxAffected: 6Upgrade to: not statedStated by: BDU
  • Open-source community Debian GNU/LinuxAffected: 9Upgrade to: not statedStated by: BDU
  • Canonical Ltd. UbuntuAffected: 14.04 ESMUpgrade to: not statedStated by: BDU

Versions as the sources state them. 5 more products have version data. Full version matrix after sign-in

What it is

From the CVE record

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.

In plain language

No plain-language summary for this CVE yet.

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS91st
Public exploit
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

1 source with a proof of concept or module.

Exploit links, PoCs and Metasploit modules after sign-in
EPSS

3.9% chance of exploitation activity in the next 30 days, which ranks it in the 91st percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

The patch came 79 days before any public exploit.

  1. Patch availablerecord updated
  2. OpenVAS check added
  3. Public exploit / PoCsource: other
  4. Patch availablerecord updated
  5. Publishedweakness classified, att&ck mapped

Affected products

Technical detail

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

Scored 7.5 by NVD.

How it is reached

  • Attack Vector NetworkExploitable remotely over the network without any special conditions
  • Attack Complexity LowNo special conditions — the attack can be reliably reproduced
  • Privileges Required NoneNo authentication required — anyone can exploit this
  • User Interaction NoneNo user interaction needed — fully automated exploitation

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality NoneNo confidentiality impact
  • Integrity HighTotal loss of integrity — attacker can modify any data in the component
  • Availability NoneNo availability impact

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2022-0391

Is CVE-2022-0391 being exploited?
Not confirmed. Public exploit code exists (1 source), but CVE-2022-0391 is not in CISA KEV. EPSS puts the chance of exploitation in the next 30 days at 3.9%.
Which versions are affected by CVE-2022-0391?
Python: python 3.10.0b1, python 3.9.5, python 3.8.11, python 3.7.11, python 3.6.14. Python: < 3.6.14. Red Hat Enterprise Linux: 6. 7 more products are listed in the record.
How do I fix or mitigate CVE-2022-0391?
Upgrade to 3.6.14 or later. The advisory is on security.gentoo.org.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Netapp, not every advisory. This one: public exploit.