{"cve":"CVE-2024-8948","nvd":{"published":"2024-09-17T19:15:29.747","modified":"2026-06-17T08:23:36.783","status":"Analyzed","description":"A vulnerability was found in MicroPython 1.23.0. It has been rated as critical. Affected by this issue is the function mpz_as_bytes of the file py/objint.c. The manipulation leads to heap-based buffer overflow. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The patch is identified as 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894. It is recommended to apply a patch to fix this issue. In micropython objint component, converting zero from int to bytes leads to heap buffer-overflow-write at mpz_as_bytes.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.9},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-787","CWE-122"],"references":["https://github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894","https://github.com/micropython/micropython/issues/13041","https://vuldb.com/?ctiid.277766","https://vuldb.com/?id.277766","https://vuldb.com/?submit.409317"],"products":["micropython:micropython"],"source":"nvd","synced_at":"2026-10-19T21:54:38.012257375+00:00"},"epss":{"cve":"CVE-2024-8948","score":0.00993,"percentile":0.62604,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-vh3x-525m-jp4r","url":"https://osv.dev/vulnerability/GHSA-vh3x-525m-jp4r","summary":"heap-buffer-overflow in MicroPython","modified":"2024-09-24T18:12:01.431387Z","packages":[{"ecosystem":"PyPI","name":"micropython-copy","purl":"pkg:pypi/micropython-copy","ranges":["<=3.3.3.post3"],"fixed":[]},{"ecosystem":"PyPI","name":"micropython-io","purl":"pkg:pypi/micropython-io","ranges":["<=0.1"],"fixed":[]},{"ecosystem":"PyPI","name":"micropython-os","purl":"pkg:pypi/micropython-os","ranges":["<=0.8"],"fixed":[]}]},{"id":"PYSEC-2024-87","url":"https://osv.dev/vulnerability/PYSEC-2024-87","summary":"","modified":"2024-09-24T18:12:01.431387Z","packages":[{"ecosystem":"PyPI","name":"micropython-copy","purl":"pkg:pypi/micropython-copy","ranges":["all versions"],"fixed":[]}]},{"id":"PYSEC-2024-88","url":"https://osv.dev/vulnerability/PYSEC-2024-88","summary":"","modified":"2024-09-24T18:12:01.431387Z","packages":[{"ecosystem":"PyPI","name":"micropython-io","purl":"pkg:pypi/micropython-io","ranges":["all versions"],"fixed":[]}]},{"id":"PYSEC-2024-89","url":"https://osv.dev/vulnerability/PYSEC-2024-89","summary":"","modified":"2026-06-10T17:01:26.496315199Z","packages":[{"ecosystem":"PyPI","name":"micropython-os","purl":"pkg:pypi/micropython-os","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}