Skip to main content
HIGH

CVE-2022-0391

CVSS v3

7.5

HIGH

EPSS Score

8.5 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for python.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • pythonBitnamiall versions · fixed in 3.6.14and 2 other packages
  • babelAlmaLinux:8all versions · fixed in 2.5.1-10.module_el8.6.0+2781+fed64c13and 1 other package
  • platform-pythonAlmaLinux:8all versions · fixed in 3.6.8-47.el8_6.almaand 6 other packages
  • python-nose-docsAlmaLinux:8all versions · fixed in 1.3.7-31.module_el8.5.0+2569+5c5719bc
  • python-sqlalchemy-docAlmaLinux:8all versions · fixed in 1.3.2-2.module_el8.5.0+2569+5c5719bc
  • python2AlmaLinux:8all versions · fixed in 2.7.18-10.module_el8.6.0+2781+fed64c13.almaand 6 other packages
  • python2-attrsAlmaLinux:8all versions · fixed in 17.4.0-10.module_el8.6.0+2781+fed64c13
  • python2-backportsAlmaLinux:8all versions · fixed in 1.0-16.module_el8.6.0+2781+fed64c13

75 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-0391 Red Hat Product Security719 products fixed · 98 known affected

    python: urllib.parse does not sanitize URLs containing ASCII newline and tabs

    python as a component of Red Hat Enterprise Linux 6 · python-devel as a component of Red Hat Enterprise Linux 6 · python-libs as a component of Red Hat Enterprise Linux 6

  • ICSA-23-348-10 CISA5 known affected

    Siemens SIMATIC S7-1500

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)

  • SSA-398330 Siemens ProductCERT5 known affected

    SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5

  • RHSA-2022:6457 Red Hat Product Security56 products fixed

    Red Hat Security Advisory: python3 security update

  • RHSA-2022:1821 Red Hat Product Security264 products fixed

    Red Hat Security Advisory: python27:2.7 security update

  • RHSA-2022:1764 Red Hat Product Security239 products fixed

    Red Hat Security Advisory: python38:3.8 and python38-devel:3.8 security update

2 more advisories

Full record on NVD

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.

Technical details

Published
2022-02-09

Frequently asked questions

What is CVE-2022-0391?

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.

Is CVE-2022-0391 actively exploited?

Active exploitation of CVE-2022-0391 has not been confirmed. Its EPSS score was 8.5% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-0391?

CVE-2022-0391 has a CVSS v3 base score of 7.5 (HIGH severity).

Running python? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month