CVE-2024-8948
Micropython vulnerability
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.
Affected products
Micropython. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Micropython runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 · Patch
- github.com/micropython/micropython/issues/13041 · Exploit
- vuldb.com/?id.277766 · Third Party Advisory
- vuldb.com/?submit.409317 · Third Party Advisory
- vuldb.com/?ctiid.277766
- nvd.nist.gov/vuln/detail/CVE-2024-8948
- github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-87.yaml
- github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-88.yaml
- nvd.nist.gov/vuln/detail/CVE-2024-8948
- cve.org/CVERecord?id=CVE-2024-8948
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.