PT-2019-6075 · Python+8 · Python+8

Published

2019-03-20

·

Updated

2026-05-18

·

CVE-2021-29921

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions Python versions prior to 3.9.5 Python versions 3.8.0 through 3.10
Description The issue is related to the ipaddress library in Python, which mishandles leading zero characters in the octets of an IP address string. This can allow attackers to bypass access control based on IP addresses, potentially leading to unauthorized access to confidential data, disruption of data integrity, and denial of service. The vulnerability can be exploited by remote attackers and may result in indeterminate SSRF and RFI vulnerabilities.
Recommendations For Python versions prior to 3.9.5, update to version 3.9.5 or later to resolve the issue. For Python versions 3.8.0 through 3.10, update to a version outside of this range to mitigate the risk. As a temporary workaround, consider restricting the use of the ipaddress library until a patch is available. Avoid using the ipaddress library for access control decisions based on IP addresses until the issue is resolved. At the moment, there is no information about additional mitigation measures.

Exploit

Fix

RCE

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

Weakness Enumeration

Related Identifiers

ALSA-2021:4160
ALSA-2021:4162
ALT-PU-2021-1784
ALT-PU-2021-2560
ALT-PU-2021-3446
BDU:2021-04696
BIT-LIBPYTHON-2021-29921
BIT-PYTHON-2021-29921
BIT-PYTHON-MIN-2021-29921
CESA-2021_4160
CESA-2021_4162
CLEANSTART-2026-BM51903
CLEANSTART-2026-SY44974
CLEANSTART-2026-WV76464
CVE-2021-29921
DLA-3980-1
MGASA-2021-0386
OPENSUSE-SU-2021_2940-1
OPENSUSE-SU-2024:11286-1
PSF-2021-2
RHSA-2021:3254
RHSA-2021:4160
RHSA-2021:4162
RHSA-2021_4160
RHSA-2021_4162
RLSA-2021:4160
RLSA-2021:4162
SUSE-FU-2022:0444-1
SUSE-FU-2022:0445-1
SUSE-SU-2021:2940-1
SUSE-SU-2021_2940-1
USN-4973-1
USN-4973-2
USN-6891-1

Affected Products

Alt Linux
Almalinux
Centos
Linuxmint
Python
Red Hat
Rocky Linux
Suse
Ubuntu