CVE-2022-0391 json
A flaw was found in Python, specifically within the urllib.parse module.
published 2022-02-09 4 y ago modified 2026-10-14 25 d ago also BIT-libpython-2022-0391 , BIT-python-2022-0391 , BIT-python-min-2022-0391 , EUVD-2022-15539
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 8.5%
- EPSS 8.5% chance of exploitation in 30 days, percentile 95%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami libpython 3.6.14, 3.7.11, 3.8.11, 3.9.5
- bitnami python 3.6.14, 3.7.11, 3.8.11, 3.9.5
- bitnami python-min 3.6.14, 3.7.11, 3.8.11, 3.9.5
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- pypy3 Debian 14, Debian 13, Debian 12 7.3.6+dfsg-1
debian advisories DEBIAN-CVE-2022-0391
- python2.7 Ubuntu 18.04 LTS 2.7.17-1~18.04ubuntu1.7
- python3.6 Ubuntu 18.04 LTS 3.6.9-1~18.04ubuntu1.7
- python3.8 Ubuntu 20.04 LTS 3.8.10-0ubuntu1~20.04.4
- python2.7 Ubuntu Pro 14.04 LTS 2.7.6-8ubuntu0.6+esm12
- python2.7 Ubuntu Pro 16.04 LTS 2.7.12-1ubuntu0~16.04.18+esm1
- python2.7 Ubuntu Pro 20.04 LTS 2.7.18-1~20.04.3+esm1
- python2.7 Ubuntu Pro 22.04 LTS 2.7.18-13ubuntu1.1+esm2
- python3.4 Ubuntu Pro 14.04 LTS 3.4.3-1ubuntu1~14.04.7+esm12
ubuntu advisories UBUNTU-CVE-2022-0391
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rh-python38-babel RHEL 3 SOFTWARE_COLLECTIONS 2.7.0-12.el7
- rh-python38-python RHEL 3 SOFTWARE_COLLECTIONS 3.8.11-2.el7
- rh-python38-python-pip RHEL 3 SOFTWARE_COLLECTIONS 19.3.1-2.el7
- rh-python38-python-idle RHEL 3 SOFTWARE_COLLECTIONS 3.8.11-2.el7
- rh-python38-python-libs RHEL 3 SOFTWARE_COLLECTIONS 3.8.11-2.el7
- rh-python38-python-lxml RHEL 3 SOFTWARE_COLLECTIONS 4.4.1-7.el7
- rh-python38-python-test RHEL 3 SOFTWARE_COLLECTIONS 3.8.11-2.el7
- rh-python38-python-babel RHEL 3 SOFTWARE_COLLECTIONS 2.7.0-12.el7
red hat advisories RHSA-2021:3254RHSA-2022:6457RHSA-2022:1821RHSA-2022:1663RHSA-2022:1764
- python SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +3 more 2.7.18-33.8.1
- python-base SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +4 more 2.7.18-33.8.1
- python SLE Real Time 15 SP2, SLE Module for Python 2 15 SP3, SLE Module for Desktop Applications 15 SP3 +1 more 2.7.18-150000.38.1
- python-base SLE Real Time 15 SP2, SLE Module for Python 2 15 SP3, SLE Module for Basesystem 15 SP3 2.7.18-150000.38.2
- python3 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 +1 more 3.4.10-25.85.2
- python3-base SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 +1 more 3.4.10-25.85.1
suse advisories SUSE-SU-2022:1140-1SUSE-SU-2022:1091-1SUSE-SU-2022:0882-1
- python openSUSE Tumbleweed 2.7.18-16.1
- python openSUSE Leap 15.3 2.7.18-150000.38.1
- python-base openSUSE Leap 15.3 2.7.18-150000.38.2
opensuse advisories openSUSE-SU-2024:11839-1openSUSE-SU-2022:1091-1
- python3-idle AlmaLinux 8 3.6.8-47.el8_6.alma
- python3-libs AlmaLinux 8 3.6.8-47.el8_6.alma
- python3-test AlmaLinux 8 3.6.8-47.el8_6.alma
- platform-python AlmaLinux 8 3.6.8-47.el8_6.alma
- python3-tkinter AlmaLinux 8 3.6.8-47.el8_6.alma
- babel AlmaLinux 8 2.5.1-10.module_el8.6.0+2781+fed64c13
- python2 AlmaLinux 8 2.7.18-10.module_el8.6.0+2781+fed64c13.alma
- python2-py AlmaLinux 8 1.5.3-6.module_el8.6.0+2781+fed64c13
almalinux advisories ALSA-2022:6457ALSA-2022:1821ALSA-2022:1764
- pytz Rocky Linux 8 2017.2-12.module+el8.5.0+706+735ec4b3
- pytz Rocky Linux 8 2017.2-12.module+el8.4.0+403+9ae17a31
- babel Rocky Linux 8 2.5.1-10.module+el8.5.0+706+735ec4b3
- numpy Rocky Linux 8 1:1.14.2-16.module+el8.5.0+706+735ec4b3
- numpy Rocky Linux 8 1:1.14.2-16.module+el8.4.0+403+9ae17a31
- scipy Rocky Linux 8 1.0.0-21.module+el8.5.0+671+195e4563
- Cython Rocky Linux 8 0.28.1-7.module+el8.5.0+706+735ec4b3
- Cython Rocky Linux 8 0.28.1-7.module+el8.4.0+403+9ae17a31
rocky linux advisories RLSA-2022:1821RLSA-2022:1764
- bugs.python.org/issue43882 advisory
- oracle.com/security-alerts/cpuapr2022.html advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-0391 updated cvss 5.3
python: urllib.parse does not sanitize URLs containing ASCII newline and tabs
-
Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, python3, tkinter, python-libs, python-test, python-tools, +4 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 numpy, scipy, PyYAML, python2, mod_wsgi, python39, +54 moreaffected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat Enterprise Linux AppStream (v. 8) python3-idle 3.6.8-47.el8_6, python3-test 3.6.8-47.el8_6, platform-python 3.6.8-47.el8_6, python3-tkinter 3.6.8-47.el8_6, pytz 2019.3-3.module+el8.4.0+8888+89bc7e79, scipy 1.3.1-4.module+el8.4.0+8888+89bc7e79, +152 morefixed: vendor fix RHSA-2022:1821
-
Red Hat Enterprise Linux BaseOS (v. 8) python3 3.6.8-47.el8_6, python3-libs 3.6.8-47.el8_6, python3-test 3.6.8-47.el8_6, platform-python 3.6.8-47.el8_6fixed: vendor fix RHSA-2022:6457
-
Red Hat Enterprise Linux CRB (v. 8) pytest 4.6.6-3.module+el8.4.0+8888+89bc7e79, python-py 1.8.0-8.module+el8.4.0+8888+89bc7e79, python38-py 1.8.0-8.module+el8.4.0+8888+89bc7e79, python-attrs 19.3.0-3.module+el8.4.0+8888+89bc7e79, python-pluggy 0.13.0-3.module+el8.4.0+8888+89bc7e79, python-packaging 19.2-3.module+el8.4.0+8888+89bc7e79, +12 morefixed: vendor fix RHSA-2022:1764
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-python38-babel 2.7.0-12.el7, rh-python38-python 3.8.11-2.el7, rh-python38-python-lxml 4.4.1-7.el7, rh-python38-python-pip 19.3.1-2.el7, rh-python38-python-idle 3.8.11-2.el7, rh-python38-python-libs 3.8.11-2.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-python38-babel 2.7.0-12.el7, rh-python38-python 3.8.11-2.el7, rh-python38-python-lxml 4.4.1-7.el7, rh-python38-python-pip 19.3.1-2.el7, rh-python38-python-idle 3.8.11-2.el7, rh-python38-python-libs 3.8.11-2.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-python38-babel 2.7.0-12.el7, rh-python38-python 3.8.11-2.el7, rh-python38-python-lxml 4.4.1-7.el7, rh-python38-python-pip 19.3.1-2.el7, rh-python38-python-idle 3.8.11-2.el7, rh-python38-python-libs 3.8.11-2.el7, +9 morefixed: vendor fix RHSA-2021:3254
-
Red Hat Software Collections for RHEL Workstation(v. 7) python27-python 2.7.18-4.el7, python27-tkinter 2.7.18-4.el7, python27-python-libs 2.7.18-4.el7, python27-python-test 2.7.18-4.el7, python27-python-tools 2.7.18-4.el7 Red Hat Software Collections for RHEL(v. 7) python27-python 2.7.18-4.el7, python27-tkinter 2.7.18-4.el7, python27-python-libs 2.7.18-4.el7, python27-python-test 2.7.18-4.el7, python27-python-tools 2.7.18-4.el7fixed: vendor fix RHSA-2022:1663
-
Red Hat Enterprise Linux 8 scipy, python36, python-nose, python-wheel, python3-bson, python3-nose, +19 more Red Hat Enterprise Linux 9 python3, python3.9, python3-idle, python3-libs, python3-test, python3-tkinter, +1 more Red Hat Software Collections for RHEL Workstation(v. 7) python27-python-pip 8.1.2-7.el7 Red Hat Software Collections for RHEL(v. 7) python27-python-pip 8.1.2-7.el7not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-23-348-10 updated cvss 7.5
Siemens SIMATIC S7-1500
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5affected: fixed in V3.1.5, mitigation support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 10 mo ago
Exploit prediction
8.54% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- bugs.python.org https://bugs.python.org/issue43882 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | libpython | <3.6.14 >=3.7.0, <3.7.11 >=3.8.0, <3.8.11 >=3.9.0, <3.9.5 |
3.6.14 3.7.11 3.8.11 3.9.5 |
| bitnami | python | <3.6.14 >=3.7.0, <3.7.11 >=3.8.0, <3.8.11 >=3.9.0, <3.9.5 |
3.6.14 3.7.11 3.8.11 3.9.5 |
| bitnami | python-min | <3.6.14 >=3.7.0, <3.7.11 >=3.8.0, <3.8.11 >=3.9.0, <3.9.5 |
3.6.14 3.7.11 3.8.11 3.9.5 |
Affected products
- n/a python
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
-
bugs.python.org
/issue43882
exploit, issue-tracking, patch, vendor-advisory, advisory
-
oracle.com
/security-alerts/cpuapr2022.html
patch, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/UDBDBAU6HUPZHISBOARTXZ5GKHF2VH5U/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/CSD2YBXP3ZF44E44QMIIAR5VTO35KTRB/
vendor-advisory, web
-
security.gentoo.org
/glsa/202305-02
vendor-advisory, web
-
security.netapp.com
/advisory/ntap-20220225-0009/
third-party-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2023/09/msg00022.html
mailing-list, web
-
lists.debian.org
/debian-lts-announce/2025/03/msg00013.html
web
-
lists.debian.org
/debian-lts-announce/2024/11/msg00024.html
web
- cert-portal.siemens.com /productcert/html/ssa-398330.html
-
nvd.nist.gov
/vuln/detail/CVE-2022-0391
web
Sources
- CVE List CVE-2022-0391
- NVD CVE-2022-0391
- OSV BIT-libpython-2022-0391
- OSV BIT-python-2022-0391
- OSV BIT-python-min-2022-0391
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.