{"answers":{"affected":"6 open source packages ship an affected version, including micropython-copy and micropython-io. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8947 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2024-8947 is a medium-severity use after free vulnerability in MicroPython, published on 17 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-8947 and fix it if it is affected.\n\nWhat it is: CVE-2024-8947 is a medium-severity use after free vulnerability in MicroPython, published on 17 Sep 2024. 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-2024-8947 exists.\n\nAffected packages and fixed versions:\n- micropython-copy (PyPI): affected all versions; no fix listed\n- micropython-copy (PyPI): affected all versions up to 3.3.3.post3; no fix listed\n- micropython-copy (PyPI): affected all versions up to 3.3.3.post3; no fix listed\n- micropython-io (PyPI): affected all versions; no fix listed\n- micropython-io (PyPI): affected all versions up to 0.1; no fix listed\n- micropython-io (PyPI): affected all versions up to 0.1; no fix listed\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-2024-8947/ (Markdown: https://insights.sbomify.com/CVE-2024-8947/index.md)","id":"CVE-2024-8947","markdown":"https://insights.sbomify.com/CVE-2024-8947/index.md","name":"CVE-2024-8947","record":{"aliases":["DEBIAN-CVE-2024-8947","GHSA-pwwp-3q7j-9mx8","PYSEC-2024-92","PYSEC-2024-94","UBUNTU-CVE-2024-8947","openSUSE-SU-2026:10704-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"MicroPython library","requires_auth":"none","summary":"A use-after-free vulnerability in MicroPython's objarray component allows remote attackers to potentially execute code or cause denial of service via crafted bytes manipulation.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"micropython","vendor":"micropython"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"MicroPython objarray.c use after free","id":"CVE-2024-8947","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"use_after_free","year":"2024"},"n_packages":7,"n_references":7,"next":{"headline":"MicroPython objint.c mpz_as_bytes heap-based overflow","id":"CVE-2024-8948"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":[],"package":"micropython-copy","purl":"pkg:pypi/micropython-copy","source":"PYSEC-2024-92"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["3.3.3.post3"],"package":"micropython-copy","purl":null,"source":"GHSA-pwwp-3q7j-9mx8"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["3.3.3.post3"],"package":"micropython-copy","purl":"pkg:pypi/micropython-copy","source":"GHSA-pwwp-3q7j-9mx8"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":[],"package":"micropython-io","purl":"pkg:pypi/micropython-io","source":"PYSEC-2024-94"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.1"],"package":"micropython-io","purl":null,"source":"GHSA-pwwp-3q7j-9mx8"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.1"],"package":"micropython-io","purl":"pkg:pypi/micropython-io","source":"GHSA-pwwp-3q7j-9mx8"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.28.0-2.1"],"introduced":["0"],"last_affected":[],"package":"micropython","purl":"pkg:rpm/opensuse/micropython\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10704-1"}],"prev":{"headline":"MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow","id":"CVE-2024-8946"},"products":["MicroPython"],"published":"2024-09-17","related":[{"cvss_score":7.3,"headline":"MicroPython objslice.c slice_indices heap-based overflow","id":"CVE-2023-7158","kev_date_added":null,"published":"2023-12-29"},{"cvss_score":6.9,"headline":"MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow","id":"CVE-2024-8946","kev_date_added":null,"published":"2024-09-17"},{"cvss_score":6.9,"headline":"MicroPython objint.c mpz_as_bytes heap-based overflow","id":"CVE-2024-8948","kev_date_added":null,"published":"2024-09-17"},{"cvss_score":5.5,"headline":"MicroPython modselect.c poll_set_add_fd use after free","id":"CVE-2023-7152","kev_date_added":null,"published":"2023-12-29"},{"cvss_score":4.8,"headline":"micropython runtime.c mp_import_all memory corruption","id":"CVE-2026-1998","kev_date_added":null,"published":"2026-02-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-17","vendors":["n/a"]},"summary":"A use-after-free vulnerability in MicroPython's objarray component allows remote attackers to potentially execute code or cause denial of service via crafted bytes manipulation.","url":"https://insights.sbomify.com/CVE-2024-8947/"}