{"answers":{"affected":"4 open source packages ship an affected version, including micropython-copy, micropython-io and micropython-os. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-7152 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-7152 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-7152 is a medium-severity use after free vulnerability in MicroPython, published on 29 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-7152 and fix it if it is affected.\n\nWhat it is: CVE-2023-7152 is a medium-severity use after free vulnerability in MicroPython, published on 29 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-7152 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- micropython-copy (PyPI): affected all versions; no fix listed\n- micropython-io (PyPI): affected all versions; no fix listed\n- micropython-os (PyPI): affected all versions; no fix listed\n- micropython-select (PyPI): affected all versions; 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-2023-7152/ (Markdown: https://insights.sbomify.com/CVE-2023-7152/index.md)","id":"CVE-2023-7152","markdown":"https://insights.sbomify.com/CVE-2023-7152/index.md","name":"CVE-2023-7152","record":{"aliases":["GHSA-jpcc-65j8-6q37","PYSEC-2023-256","PYSEC-2023-257","PYSEC-2023-258","PYSEC-2023-259","UBUNTU-CVE-2023-7152"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"MicroPython library","requires_auth":"low_privilege","summary":"A use-after-free vulnerability in MicroPython's poll_set_add_fd function allows attackers to potentially execute arbitrary code or cause denial of service.","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":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"A vulnerability, which was classified as critical, has been found in MicroPython 1.21.0/1.22.0-preview. Affected by this issue is the function poll_set_add_fd of the file extmod/modselect.c. The manipulation leads to use after free. The exploit has been disclosed to the public and may be used. The patch is identified as 8b24aa36ba978eafc6114b6798b47b7bfecdca26. It is recommended to apply a patch to fix this issue. VDB-249158 is the identifier assigned to this vulnerability.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"MicroPython modselect.c poll_set_add_fd use after free","id":"CVE-2023-7152","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"use_after_free","year":"2023"},"n_packages":4,"n_references":7,"next":{"headline":"Reflected XSS in Macroturk's Macro-Bel","id":"CVE-2023-7153"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":[],"package":"micropython-copy","purl":"pkg:pypi/micropython-copy","source":"PYSEC-2023-256"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":[],"package":"micropython-io","purl":"pkg:pypi/micropython-io","source":"PYSEC-2023-257"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":[],"package":"micropython-os","purl":"pkg:pypi/micropython-os","source":"PYSEC-2023-258"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":[],"package":"micropython-select","purl":"pkg:pypi/micropython-select","source":"PYSEC-2023-259"}],"prev":{"headline":"Product Enquiry for WooCommerce \u003c 3.2 - Reflected XSS","id":"CVE-2023-7151"},"products":["MicroPython"],"published":"2023-12-29","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":6.3,"headline":"MicroPython objarray.c use after free","id":"CVE-2024-8947","kev_date_added":null,"published":"2024-09-17"},{"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":"PyPA Advisory Database","prefix":"PYSEC"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-02-13","vendors":["n/a"]},"summary":"A use-after-free vulnerability in MicroPython's poll_set_add_fd function allows attackers to potentially execute arbitrary code or cause denial of service.","url":"https://insights.sbomify.com/CVE-2023-7152/"}