{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min. It affects 6 products.","exploited":"There is no known exploitation of CVE-2021-29921 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.8.12 or 3.9.5.","what":"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."},"fix_prompt":"Check this codebase for CVE-2021-29921 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2021-29921 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected from 3.8.0; fixed in 3.8.12, 3.9.5\n- python (Bitnami): affected from 3.8.0; fixed in 3.8.12, 3.9.5\n- python-min (Bitnami): affected from 3.8.0; fixed in 3.8.12, 3.9.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-29921/ (Markdown: https://insights.sbomify.com/CVE-2021-29921/index.md)","id":"CVE-2021-29921","markdown":"https://insights.sbomify.com/CVE-2021-29921/index.md","name":"CVE-2021-29921","record":{"aliases":["ALPINE-CVE-2021-29921","BIT-libpython-2021-29921","BIT-python-2021-29921","BIT-python-min-2021-29921","CLEANSTART-2026-JU50054","DEBIAN-CVE-2021-29921","GHSA-cxqv-r2cc-r9c9","MGASA-2021-0386","PSF-2021-2","SUSE-SU-2021:2940-1","UBUNTU-CVE-2021-29921","USN-4973-1","USN-4973-2"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python ipaddress library","requires_auth":"none","summary":"Attackers can bypass IP-based access controls by exploiting leading zero handling in the Python ipaddress library.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"communications_cloud_native_core_automated_test_suite","vendor":"oracle"},{"product":"communications_cloud_native_core_binding_support_function","vendor":"oracle"},{"product":"communications_cloud_native_core_network_slice_selection_function","vendor":"oracle"},{"product":"graalvm","vendor":"oracle"},{"product":"zfs_storage_appliance_kit","vendor":"oracle"},{"product":"python","vendor":"python"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"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.","ecosystems":["Bitnami","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Development Tools 15 SP3"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Security feature bypass in n/a","id":"CVE-2021-29921","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"oracle:communications_cloud_native_core_automated_test_suite","products":["oracle:communications_cloud_native_core_automated_test_suite","oracle:communications_cloud_native_core_binding_support_function","oracle:graalvm","oracle:zfs_storage_appliance_kit","python:python"],"type":"security_feature_bypass","year":"2021"},"n_packages":6,"n_references":16,"next":{"headline":"Security feature bypass in n/a","id":"CVE-2021-29922"},"packages":[{"ecosystem":"Bitnami","fixed":["3.8.12","3.9.5"],"introduced":["3.8.0","3.9.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2021-29921"},{"ecosystem":"Bitnami","fixed":["3.8.12","3.9.5"],"introduced":["3.8.0","3.9.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2021-29921"},{"ecosystem":"Bitnami","fixed":["3.8.12","3.9.5"],"introduced":["3.8.0","3.9.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2021-29921"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["3.9.6-4.3.4"],"introduced":["0"],"last_affected":[],"package":"python39","purl":"pkg:rpm/suse/python39\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2021:2940-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["3.9.6-4.3.3"],"introduced":["0"],"last_affected":[],"package":"python39-core","purl":"pkg:rpm/suse/python39-core\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2021:2940-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP3","fixed":["3.9.6-4.3.3"],"introduced":["0"],"last_affected":[],"package":"python39-core","purl":"pkg:rpm/suse/python39-core\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3","source":"SUSE-SU-2021:2940-1"}],"prev":{"headline":"IBM Security Verify Privilege improper input validation","id":"CVE-2021-29913"},"products":["n/a"],"published":"2021-05-06","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["n/a"]},"summary":"Attackers can bypass IP-based access controls by exploiting leading zero handling in the Python ipaddress library.","url":"https://insights.sbomify.com/CVE-2021-29921/"}