CVE-2024-8948Micropython
Medium 6.9 No auth needed
Follow: this CVE · Micropython · Micropython We alert you by email or Slack (account required).
- Priority
- 57
- CVSS 4.0
- 6.9
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- No
- Published
- Sep 17, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Micropython.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | micropython-copy |
≤ 3.3.3.post3 |
no fixed version | — |
| PyPI | micropython-copy |
all |
no fixed version | — |
| PyPI | micropython-io |
≤ 0.1 |
no fixed version | — |
| PyPI | micropython-io |
all |
no fixed version | — |
| PyPI | micropython-os |
≤ 0.8 |
no fixed version | — |
| PyPI | micropython-os |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-vh3x-525m-jp4r, PYSEC-2024-87, PYSEC-2024-88, PYSEC-2024-89). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| micropython | micropython | 1.23.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Issue Tracking Third Party Advisory
- vuldb.com Permissions Required
- vuldb.com Third Party Advisory
- vuldb.com Third Party Advisory