CVE-2024-8948: heap-buffer-overflow in MicroPython
A vulnerability was found in MicroPython 1.23.0. It has been rated as critical. Affected by this issue is the function mpzasbytes 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.
Published Sep 17, 2024 · Updated Sep 24, 2024
Affected packages
micropython-copy
- Ecosystem
- PyPI
- Affected
- <= 3.3.3.post3
- Fixed in
- No patched version yet
- Check
pip show micropython-copy
micropython-io
- Ecosystem
- PyPI
- Affected
- <= 0.1
- Fixed in
- No patched version yet
- Check
pip show micropython-io
micropython-os
- Ecosystem
- PyPI
- Affected
- <= 0.8
- Fixed in
- No patched version yet
- Check
pip show micropython-os
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8948
- https://github.com/micropython/micropython/issues/13041
- https://github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894
- https://vuldb.com/?ctiid.277766
- https://vuldb.com/?id.277766
- https://vuldb.com/?submit.409317
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-87.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-88.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-os/PYSEC-2024-89.yaml
- https://github.com/advisories/GHSA-vh3x-525m-jp4r
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
