Skip to content

CVE-2021-29921 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 base...

CriticalCVSS 9.8 EPSS 6.8%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

22 packages: 17 fixed.

PackageAffectedFixed inStatus
alpine/python3(Alpine v3.15) < 3.9.5-r0 3.9.5-r0 Fixed
alpine/python3(Alpine v3.16) < 3.9.5-r0 3.9.5-r0 Fixed
alpine/python3(Alpine v3.17) < 3.9.5-r0 3.9.5-r0 Fixed
alpine/python3(Alpine v3.18) < 3.9.5-r0 3.9.5-r0 Fixed
alpine/python3(Alpine v3.19) < 3.9.5-r0 3.9.5-r0 Fixed
alpine/python3(Alpine v3.20) < 3.9.5-r0 3.9.5-r0 Fixed
alpine/python3(Alpine v3.21) < 3.9.5-r0 3.9.5-r0 Fixed
alpine/python3(Alpine v3.22) < 3.9.5-r0 3.9.5-r0 Fixed
alpine/python3(Alpine v3.23) < 3.9.5-r0 3.9.5-r0 Fixed
alpine/python3(Alpine v3.24) < 3.9.5-r0 3.9.5-r0 Fixed
debian/pypy3(Debian 12) < 7.3.8+dfsg-1 7.3.8+dfsg-1 Fixed
debian/pypy3(Debian 13) < 7.3.8+dfsg-1 7.3.8+dfsg-1 Fixed
debian/pypy3(Debian 14) < 7.3.8+dfsg-1 7.3.8+dfsg-1 Fixed
python >= 3.8.0, < 3.8.12; >= 3.9.0, < 3.9.5 3.8.12, 3.9.5 Fixed
ubuntu/python3.8(Ubuntu 20.04) < 3.8.10-0ubuntu1~20.04.1; = 3.8.0-1; = 3.8.0-2; = 3.8.0-3 +12 more 3.8.10-0ubuntu1~20.04.1 Fixed
ubuntu/python3.8(Ubuntu Pro 18.04) < 3.8.0-3ubuntu1~18.04.2+esm2; = 3.8.0-3ubuntu1~18.04.2; = 3.8.0-3ubuntu1~18.04.2+esm1; = 3.8.0-3~18.04 +1 more 3.8.0-3ubuntu1~18.04.2+esm2 Fixed
ubuntu/python3.9(Ubuntu 20.04) < 3.9.5-3~20.04.1; = 3.9.0-5~20.04; = 3.9.0~rc1-1~20.04 3.9.5-3~20.04.1 Fixed
oracle communications cloud native core automated test suite = 1.8.0 No fix listed Versions listed
oracle communications cloud native core binding support function = 1.11.0 No fix listed Versions listed
oracle communications cloud native core network slice selection function = 1.8.0 No fix listed Versions listed
oracle graalvm = 20.3.2; = 21.1.0 No fix listed Versions listed
oracle zfs storage appliance kit = 8.8 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/pypy3(Debian:12) < 7.3.8+dfsg-1 7.3.8+dfsg-1
debian/pypy3(Debian:13) < 7.3.8+dfsg-1 7.3.8+dfsg-1
debian/pypy3(Debian:14) < 7.3.8+dfsg-1 7.3.8+dfsg-1
alpine/python3(Alpine:v3.15) < 3.9.5-r0 3.9.5-r0
alpine/python3(Alpine:v3.16) < 3.9.5-r0 3.9.5-r0
alpine/python3(Alpine:v3.17) < 3.9.5-r0 3.9.5-r0
alpine/python3(Alpine:v3.18) < 3.9.5-r0 3.9.5-r0
alpine/python3(Alpine:v3.19) < 3.9.5-r0 3.9.5-r0
alpine/python3(Alpine:v3.20) < 3.9.5-r0 3.9.5-r0
alpine/python3(Alpine:v3.21) < 3.9.5-r0 3.9.5-r0
alpine/python3(Alpine:v3.22) < 3.9.5-r0 3.9.5-r0
alpine/python3(Alpine:v3.23) < 3.9.5-r0 3.9.5-r0
alpine/python3(Alpine:v3.24) < 3.9.5-r0 3.9.5-r0
python >= 3.8.0, < 3.8.12 3.8.12
python >= 3.9.0, < 3.9.5 3.9.5
oracle communications cloud native core automated test suite = 1.8.0 No fix listed
oracle communications cloud native core binding support function = 1.11.0 No fix listed
oracle communications cloud native core network slice selection function = 1.8.0 No fix listed
oracle graalvm = 20.3.2 No fix listed
oracle graalvm = 21.1.0 No fix listed
oracle zfs storage appliance kit = 8.8 No fix listed
ubuntu/python3.8(Ubuntu:Pro:18.04) < 3.8.0-3ubuntu1~18.04.2+esm2 3.8.0-3ubuntu1~18.04.2+esm2
ubuntu/python3.8(Ubuntu:Pro:18.04) = 3.8.0-3~18.04 No fix listed
ubuntu/python3.8(Ubuntu:Pro:18.04) = 3.8.0-3~18.04.1 No fix listed
ubuntu/python3.8(Ubuntu:Pro:18.04) = 3.8.0-3ubuntu1~18.04.2 No fix listed
Show 20 more
ProductAffected versionsFixed in
ubuntu/python3.8(Ubuntu:Pro:18.04) = 3.8.0-3ubuntu1~18.04.2+esm1 No fix listed
ubuntu/python3.8(Ubuntu:20.04) < 3.8.10-0ubuntu1~20.04.1 3.8.10-0ubuntu1~20.04.1
ubuntu/python3.8(Ubuntu:20.04) = 3.8.0-1 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.0-2 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.0-3 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.0-4 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.0-5 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.1-2ubuntu3 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.2~rc1-1ubuntu1 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.2-1 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.2-1ubuntu1 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.2-1ubuntu1.1 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.2-1ubuntu1.2 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.5-1~20.04 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.5-1~20.04.2 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.5-1~20.04.3 No fix listed
ubuntu/python3.8(Ubuntu:20.04) = 3.8.10-0ubuntu1~20.04 No fix listed
ubuntu/python3.9(Ubuntu:20.04) < 3.9.5-3~20.04.1 3.9.5-3~20.04.1
ubuntu/python3.9(Ubuntu:20.04) = 3.9.0~rc1-1~20.04 No fix listed
ubuntu/python3.9(Ubuntu:20.04) = 3.9.0-5~20.04 No fix listed

References