CVE-2024-8948
CVE-2024-8948 is a high-severity vulnerability in Micropython with a CVSS 3.x base score of 7.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-787.
Key facts
- Severity: High (CVSS 3.x base score 7.3)
- CVSS v2: 7.5
- CVSS v4: 6.9
- EPSS exploit prediction: 1% (58th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-0101
- Weakness: CWE-787
- Affected product: Micropython
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2024-8948?
- CVE-2024-8948 has a CVSS 3.x base score of 7.3, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability low.
- Is CVE-2024-8948 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (58th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-8948?
- CVE-2024-8948 affects Micropython. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-8948?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2024-8948 have an EU (EUVD) identifier?
- Yes. CVE-2024-8948 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0101.
- When was CVE-2024-8948 published?
- CVE-2024-8948 was published on 2024-09-17 and last updated on 2026-06-17.
References
- https://github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894
- https://github.com/micropython/micropython/issues/13041
- https://vuldb.com/?ctiid.277766
- https://vuldb.com/?id.277766
- https://vuldb.com/?submit.409317
Affected products (1)
- cpe:2.3:a:micropython:micropython:1.23.0:*:*:*:*:*:*:*
More vulnerabilities in Micropython
- CVE-2024-8946 — High (CVSS 7.3): A vulnerability was found in MicroPython 1.23.0. It has been classified as critical. Affected is the function…
- CVE-2023-7158 — High (CVSS 7.3): A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function…
- CVE-2024-8947 — Medium (CVSS 5.6): A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an…
- CVE-2023-7152 — Medium (CVSS 5.5): A vulnerability, which was classified as critical, has been found in MicroPython 1.21.0/1.22.0-preview. Affected by…
- CVE-2026-1998 — Low (CVSS 3.3): A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file…
All CVEs affecting Micropython →
Other CWE-787 (Out-of-bounds Write) vulnerabilities
- CVE-2026-42369 — Critical (CVSS 10.0): GV-VMS V20 is a Video Monitoring Software used to gather the feeds of many surveillance cameras and manage other…
- CVE-2026-4746 — Critical (CVSS 10.0): Out-of-bounds Write vulnerability in timeplus-io proton (base/poco/Foundation/src modules). This vulnerability is…
- CVE-2025-43300 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved bounds checking. This issue is fixed in iOS 15.8.5 and iPadOS…
- CVE-2025-24201 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved checks to prevent unauthorized actions. This issue is fixed in…
- CVE-2024-42479 — Critical (CVSS 10.0): llama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause…
- CVE-2024-39791 — Critical (CVSS 10.0): Stack-based buffer overflow vulnerabilities affecting Vonets industrial wifi bridge relays and wifi bridge…