7.5

CVE-2024-8948: micropython Heap-based Buffer Overflow

CVSS: 7.5v2.0HighAnalyzed
AliasesGHSA-vh3x-525m-jp4rPYSEC-2024-87PYSEC-2024-88
Published 17-09-2024Last modified 17-09-2024

Vulnerability summary

CVE-2024-8948 is a high (CVSS 7.5) Heap-based Buffer Overflow vulnerability in micropython. EPSS estimates a 0.99% chance of exploitation in the next 30 days, higher than 62% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v2.0 (CVE.org)
EPSS score
0.99%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 17-09-2024
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

11 scores · 5 sources · 4 versions

EPSS trend

Probability

0.99%

Chance of exploitation in the next 30 days

Percentile

62%

Versus all other CVEs

30-day change

0.00 pp

From 0.99% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.99%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Micropython

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

PyPI3 products
  • micropython-copy≤ 3.3.3.post3 | < 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 | All versions (No fix recorded)
  • micropython-io≤ 0.1 | < 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 | All versions (No fix recorded)
  • micropython-os≤ 0.8 | < 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 | All versions (No fix recorded)
Debian1 product
  • micropython< 1.24.0+ds-1
Micropython1 product
Ubuntu1 product
  • micropythonAll versions (No fix recorded)

4 vendors · 6 products

References

13 links
Show all 13 references