cve.bz

CVE-2024-8948

6.9 mediumEPSS 1.0%

Medium (6.9) in micropython micropython. EPSS 1.0% chance of exploitation in the next 30 days.

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.

Severity

CVSS 4.0

6.9 medium
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.0% chance of exploitation in the next 30 days; higher than 62% of CVEs (scores of 2026-10-31)
CWEs
CWE-787, CWE-122
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vh3x-525m-jp4rPyPImicropython-copy<=3.3.3.post3no fix published
GHSA-vh3x-525m-jp4rPyPImicropython-io<=0.1no fix published
GHSA-vh3x-525m-jp4rPyPImicropython-os<=0.8no fix published
PYSEC-2024-87PyPImicropython-copyall versionsno fix published
PYSEC-2024-88PyPImicropython-ioall versionsno fix published
PYSEC-2024-89PyPImicropython-osall versionsno fix published

References

Check your stackJSON