{"id":"CVE-2024-8948","aliases":["CVE-2024-8948","GHSA-vh3x-525m-jp4r","PYSEC-2024-87","PYSEC-2024-88","PYSEC-2024-89"],"related":[],"kind":"vulnerability","state":"published","title":"MicroPython objint.c mpz_as_bytes heap-based overflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"de","text":"Eine kritische Schwachstelle wurde in MicroPython 1.23.0 ausgemacht. Es geht hierbei um die Funktion mpz_as_bytes der Datei py/objint.c. Mittels dem Manipulieren mit unbekannten Daten kann eine heap-based buffer overflow-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk angegangen werden. Der Exploit steht zur öffentlichen Verfügung. Der Patch wird als 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 bezeichnet. Als bestmögliche Massnahme wird Patching empfohlen.","source":"cvelist"},{"lang":"es","text":"Se encontró una vulnerabilidad en MicroPython 1.23.0. Se ha calificado como crítica. Este problema afecta a la función mpz_as_bytes del archivo py/objint.c. La manipulación provoca un desbordamiento del búfer en el montón. El ataque puede iniciarse de forma remota. El exploit se ha hecho público y puede utilizarse. El parche se identifica como 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894. Se recomienda aplicar un parche para solucionar este problema. En el componente objint de micropython, la conversión de cero de int a bytes provoca un desbordamiento del búfer en el montón en mpz_as_bytes.","source":"nvd"}],"published":"2024-09-17T18:50:17.599Z","modified":"2026-06-17T08:23:36.783Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","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,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","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,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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,"rating":"HIGH"}],"cwes":["CWE-122","CWE-787"],"affected":[{"ranges":[{"version":"1.23.0","status":"affected"}],"product":"MicroPython","source":"cvelist"},{"ranges":[{"version":"1.23.0","status":"affected"}],"vendor":"micropython","product":"micropython","cpe":"cpe:2.3:a:micropython:micropython:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.3.3.post3"}],"ecosystem":"PyPI","package":"micropython-copy","purl":"pkg:pypi/micropython-copy","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.1"}],"ecosystem":"PyPI","package":"micropython-io","purl":"pkg:pypi/micropython-io","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.8"}],"ecosystem":"PyPI","package":"micropython-os","purl":"pkg:pypi/micropython-os","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.23.0"}],"vendor":"micropython","product":"micropython","cpe":"cpe:2.3:a:micropython:micropython:1.23.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"908ab1ceca15ee6fd0ef82ca4cba770a3ec41894"},{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"PyPI","package":"micropython-copy","purl":"pkg:pypi/micropython-copy","repo":"https://github.com/micropython/micropython","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"908ab1ceca15ee6fd0ef82ca4cba770a3ec41894"},{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"PyPI","package":"micropython-io","purl":"pkg:pypi/micropython-io","repo":"https://github.com/micropython/micropython","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"908ab1ceca15ee6fd0ef82ca4cba770a3ec41894"},{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"PyPI","package":"micropython-os","purl":"pkg:pypi/micropython-os","repo":"https://github.com/micropython/micropython","source":"pysec"}],"references":[{"url":"https://vuldb.com/?id.277766","tags":["technical-description","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?ctiid.277766","tags":["permissions-required","signature","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?submit.409317","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/micropython/micropython/issues/13041","tags":["evidence","exploit","issue-tracking","report","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894","tags":["fix","patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8948","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-87.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-88.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/micropython-os/PYSEC-2024-89.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-vh3x-525m-jp4r","tags":["advisory"],"sources":["pysec"]}],"credits":["qbit (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-09-17T20:06:28.932Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-8948","url":"https://www.cve.org/CVERecord?id=CVE-2024-8948","licence":"CVE Terms of Use","modified":"2024-09-17T20:07:19.189Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vh3x-525m-jp4r","url":"https://github.com/advisories/GHSA-vh3x-525m-jp4r","licence":"CC-BY-4.0","modified":"2024-09-24T18:12:01.431Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-8948","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8948","licence":"Public domain","modified":"2026-06-17T08:23:36.783Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-87","url":"https://osv.dev/vulnerability/PYSEC-2024-87","licence":"CC-BY-4.0","modified":"2024-09-24T18:12:01.431Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-88","url":"https://osv.dev/vulnerability/PYSEC-2024-88","licence":"CC-BY-4.0","modified":"2024-09-24T18:12:01.431Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-89","url":"https://osv.dev/vulnerability/PYSEC-2024-89","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:26.496Z"}],"updatedAt":"2026-11-25T22:58:45.515Z","epss":{"score":0.00985,"percentile":0.63391,"date":"2026-12-02T12:00:21.000Z"}}