CVE-2021-29921 Security feature bypass in n/a
Attackers can bypass IP-based access controls by exploiting leading zero handling in the Python ipaddress library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-29921?
CVE-2021-29921 is a critical vulnerability in Oracle Communications Cloud Native Core Automated Test Suite, published on 6 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2021-29921?
3 open source packages ship an affected version, including libpython, python and python-min. It affects 6 products.
| Package | Affected | Fixed in |
|---|---|---|
libpython Bitnami | From 3.8.0 | 3.8.12, 3.9.5 |
python Bitnami | From 3.8.0 | 3.8.12, 3.9.5 |
python-min Bitnami | From 3.8.0 | 3.8.12, 3.9.5 |
Linux distribution packages (3)
python39 SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 3.9.6-4.3.4 |
python39-core SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 3.9.6-4.3.3 |
python39-core SUSE:Linux Enterprise Module for Development Tools 15 SP3 | All versions | 3.9.6-4.3.3 |
Products include Oracle Communications Cloud Native Core Automated Test Suite, Oracle Communications Cloud Native Core Binding Support Function, Oracle Communications Cloud Native Core Network Slice Selection Function, Oracle Graalvm, Oracle Zfs Storage Appliance Kit, Python Python.
How do I fix CVE-2021-29921?
Upgrade libpython to a fixed version for your release line: 3.8.12 or 3.9.5.
Is CVE-2021-29921 being exploited?
There is no known exploitation of CVE-2021-29921 in the wild and no public exploit code.
Sources
Also known as ALPINE-CVE-2021-29921, BIT-libpython-2021-29921, BIT-python-2021-29921, BIT-python-min-2021-29921, CLEANSTART-2026-JU50054, DEBIAN-CVE-2021-29921 and 7 more.