{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min. It affects 10 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-3177 exists.","fix":"Upgrade libpython to a fixed version for your release line: 3.6.13, 3.7.10, 3.8.8 or 3.9.2.","what":"CVE-2021-3177 is a critical memory corruption vulnerability in Debian Debian Linux, published on 19 Jan 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-3177 and fix it if it is affected.\n\nWhat it is: CVE-2021-3177 is a critical memory corruption vulnerability in Debian Debian Linux, published on 19 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-3177 exists.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.6.13, 3.7.10, 3.8.8, 3.9.2\n- python (Bitnami): affected all versions; fixed in 3.6.13, 3.7.10, 3.8.8, 3.9.2\n- python-min (Bitnami): affected all versions; fixed in 3.6.13, 3.7.10, 3.8.8, 3.9.2\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-3177/ (Markdown: https://insights.sbomify.com/CVE-2021-3177/index.md)","id":"CVE-2021-3177","markdown":"https://insights.sbomify.com/CVE-2021-3177/index.md","name":"CVE-2021-3177","record":{"aliases":["ALPINE-CVE-2021-3177","BIT-libpython-2021-3177","BIT-python-2021-3177","BIT-python-min-2021-3177","CLEANSTART-2026-FH60481","DEBIAN-CVE-2021-3177","GHSA-hc96-xw56-vfwh","MGASA-2021-0064","OESA-2021-1036","OESA-2021-1066","PSF-2021-3","UBUNTU-CVE-2021-3177","USN-4754-4","USN-4754-5"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python standard library","requires_auth":"none","summary":"A buffer overflow in Python's ctypes module allows remote code execution when processing untrusted floating-point numbers.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"active_iq_unified_manager","vendor":"netapp"},{"product":"ontap_select_deploy_administration_utility","vendor":"netapp"},{"product":"communications_cloud_native_core_network_function_cloud_native_environment","vendor":"oracle"},{"product":"communications_offline_mediation_controller","vendor":"oracle"},{"product":"communications_pricing_design_center","vendor":"oracle"},{"product":"enterprise_manager_ops_center","vendor":"oracle"},{"product":"zfs_storage_appliance_kit","vendor":"oracle"},{"product":"python","vendor":"python"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"description":"Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as untrusted input, as demonstrated by a 1e300 argument to c_double.from_param. This occurs because sprintf is used unsafely.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Memory corruption in n/a","id":"CVE-2021-3177","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","netapp:active_iq_unified_manager","netapp:ontap_select_deploy_administration_utility","oracle:enterprise_manager_ops_center","oracle:zfs_storage_appliance_kit","python:python"],"type":"memory_corruption","year":"2021"},"n_packages":3,"n_references":28,"next":{"headline":"Path traversal in n/a","id":"CVE-2021-3178"},"packages":[{"ecosystem":"Bitnami","fixed":["3.6.13","3.7.10","3.8.8","3.9.2"],"introduced":["0","3.7.0","3.8.0","3.9.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2021-3177"},{"ecosystem":"Bitnami","fixed":["3.6.13","3.7.10","3.8.8","3.9.2"],"introduced":["0","3.7.0","3.8.0","3.9.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2021-3177"},{"ecosystem":"Bitnami","fixed":["3.6.13","3.7.10","3.8.8","3.9.2"],"introduced":["0","3.7.0","3.8.0","3.9.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2021-3177"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2021-3176"},"products":["n/a"],"published":"2021-01-19","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-14","vendors":["n/a"]},"summary":"A buffer overflow in Python's ctypes module allows remote code execution when processing untrusted floating-point numbers.","url":"https://insights.sbomify.com/CVE-2021-3177/"}