PT-2022-2220 · Python+11 · Python+11

Published

2021-04-18

·

Updated

2025-12-17

·

CVE-2022-0391

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:C/A:N
Name of the Vulnerable Software and Affected Versions Python versions prior to 3.10.0b1 Python versions prior to 3.9.5 Python versions prior to 3.8.11 Python versions prior to 3.7.11 Python versions prior to 3.6.14
Description The issue involves the urllib.parse module in Python, which does not properly sanitize input, allowing characters like r and in the URL path. This flaw allows an attacker to input a crafted URL, leading to injection attacks. The attacker can exploit this issue by providing specially crafted data containing CR-LF symbols, which can alter the application's behavior.
Recommendations For versions prior to 3.10.0b1, update to version 3.10.0b1 or later. For versions prior to 3.9.5, update to version 3.9.5 or later. For versions prior to 3.8.11, update to version 3.8.11 or later. For versions prior to 3.7.11, update to version 3.7.11 or later. For versions prior to 3.6.14, update to version 3.6.14 or later. As a temporary workaround, consider restricting the use of the urlparse method in the urllib.parse module until a patch is available. Avoid using the urlparse method with untrusted input data.

Exploit

Fix

Special Elements Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2022:1764
ALSA-2022:1821
ALSA-2022:6457
ALT-PU-2021-1784
ALT-PU-2021-2653
ALT-PU-2022-1471
ALT-PU-2022-3044
ALT-PU-2023-4581
ALT-PU-2024-3474
BDU:2022-02302
BIT-LIBPYTHON-2022-0391
BIT-PYTHON-2022-0391
BIT-PYTHON-MIN-2022-0391
CESA-2022_1764
CESA-2022_1821
CESA-2022_6457
CVE-2022-0391
DLA-3575-1
DLA-3966-1
DLA-4087-1
MGASA-2022-0367
OESA-2022-1566
OPENSUSE-SU-2022:1091-1
OPENSUSE-SU-2022_1091-1
OPENSUSE-SU-2024:11839-1
PSF-2022-8
RHSA-2021:3254
RHSA-2022:1663
RHSA-2022:1764
RHSA-2022:1821
RHSA-2022:6457
RHSA-2022_1764
RHSA-2022_1821
RHSA-2022_6457
RLSA-2022:1764
RLSA-2022:1821
ROSA-SA-2023-2203
ROSA-SA-2025-2646
SUSE-SU-2022:0882-1
SUSE-SU-2022:1091-1
SUSE-SU-2022:1140-1
USN-5342-1
USN-5342-2
USN-6891-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Debian
Linuxmint
Python
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu