CVE-2024-8948

published 17 Sep 2024 · updated 17 Sep 2024

MicroPython objint.c mpz_as_bytes heap-based overflow

8.3HighCVSS 7.3EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
=1.23.0

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-8948 severity on Zeptric[![CVE-2024-8948](https://zeptric.io/badge/cve/CVE-2024-8948.svg)](https://zeptric.io/cve/CVE-2024-8948)