CVE-2021-29921Improper Input Validation in Python

Severity
9.8CRITICALNVD
EPSS
2.0%
top 16.11%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 6
Latest updateJul 11

Description

In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string. This (in some situations) allows attackers to bypass access control that is based on IP addresses.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages6 packages

Patches

🔴Vulnerability Details

3
GHSA
GHSA-cxqv-r2cc-r9c9: Improper input validation of octal strings in Python stdlib ipaddress 32022-05-24
CVEList
CVE-2021-29921: In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string2021-05-06
OSV
CVE-2021-29921: In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string2021-05-06

📋Vendor Advisories

8
Ubuntu
Python vulnerabilities2024-07-11
Oracle
Oracle Oracle Communications Risk Matrix: BSF (Python) — CVE-2021-299212022-04-15
Oracle
Oracle Oracle Communications Risk Matrix: ATS Framework (Python) — CVE-2021-299212022-01-15
Ubuntu
Python vulnerability2021-10-04
Oracle
Oracle Oracle Java SE Risk Matrix: Python interpreter and runtime (CPython) — CVE-2021-299212021-07-15