CVE-2024-8948CWE-122

MicroPython objint.c mpz_as_bytes heap-based overflow

Medium · published September 17, 2024

CVSS v4.0
6.9
EPSS
1%
Percentile
62.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
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
EPSS
0.00993 · 62.2th percentile
Weakness
CWE-122 · Heap-based Buffer Overflow
Published
2024-09-17T18:50Z
EPSS history
Timeline
  • 17 SEP 18:50Z
    MicroPython objint.c mpz_as_bytes heap-based overflow
    cvelistv5