Buffer overflow in Micropython
CVE-2024-8948
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS: 0.010 (61.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 61st percentile — 61.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.010 · newest: 0.010 · change: 0.000
Affected products
- Micropython — versions 1.23.0
- Micropython — versions 1.23.0
Weakness classification (CWE)
References
- vuldb.com/ (technical-description, Third Party Advisory, vdb-entry)
- vuldb.com/ (signature, Permissions Required, permissions-required)
- vuldb.com/ (Third Party Advisory, third-party-advisory)
- github.com/micropython/micropython/issues/13041 (issue-tracking, Exploit, Third Party Advisory, exploit, Issue Tracking)
- github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41… (Patch, patch)
Frequently asked questions
- What is CVE-2024-8948?
- CVE-2024-8948 is a high-severity vulnerability in Micropython, classified under Heap-based Buffer Overflow. CVSS score: 7.3/10. Published 2024-09-17.
- How severe is CVE-2024-8948?
- High severity. CVSS v3 base score is 7.3 out of 10.