CVE-2024-8948: MicroPython - Buffer Overflow
- Cve: CVE-2024-8948
- Name: MicroPython - Buffer Overflow
- 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.
- Impact: Remote attackers can cause heap buffer overflow, potentially leading to arbitrary code execution or system crash.
- Remediation: Apply the patch with commit ID 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 to fix the issue.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00985
- Epss percentile: 0.63246
- Assignee: [email protected]
- Published at: 2024-09-17T19:15:29Z
- Age in days: 798
- Modified at: 2026-06-17T08:23:36Z
- Patch available: yes
- Public exploits total: 1
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-8948
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
| CWE-787 | Out-of-bounds Write |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/micropython/micropython/issues/13041 | nvd | 2024-09-17 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 | Patch |
| https://github.com/micropython/micropython/issues/13041 | Exploit, Issue Tracking, Third Party Advisory |
| https://vuldb.com/?id.277766 | Third Party Advisory |
| https://vuldb.com/?submit.409317 | Third Party Advisory |
| https://vuldb.com/?ctiid.277766 | Permissions Required |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| micropython:micropython | = 1.23.0 | no | nvd | /v1/products/micropython/micropython |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| micropython/micropython | commit, fix, issues | yes | /v1/repositories/micropython/micropython |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-09-17
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts