CVE-2023-7158
MicroPython objslice.c slice_indices heap-based overflow
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running MicroPython 1.13.0; 1.14.0; 1.15.0; 1.16.0; 1.17.0; 1.18.0; 1.19.0; 1.20.0; 1.21.0
Vulnerability facts
- Affected
- MicroPython 1.13.0; 1.14.0; 1.15.0; 1.16.0; 1.17.0; 1.18.0; 1.19.0; 1.20.0; 1.21.0
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 1.69% chance of exploitation in 30 days (percentile 78, 2026-11-26)
- CWE
- CWE-122
- Modified
Description
A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function slice_indices of the file objslice.c. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.22.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-249180.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| MicroPython | 1.13.0; 1.14.0; 1.15.0; 1.16.0; 1.17.0; 1.18.0; 1.19.0; 1.20.0; 1.21.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-7158. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-7158.md Affected: MicroPython 1.13.0; 1.14.0; 1.15.0; 1.16.0; 1.17.0; 1.18.0; 1.19.0; 1.20.0; 1.21.0 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for MicroPython: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
Exploits and PoCs
Articles
Other
- https://vuldb.com/?ctiid.249180
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEK46QAJOXXDZOWOIE2YACUOCZFWOBCK/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7/
FAQ
Is CVE-2023-7158 being exploited?
There is no confirmed exploitation: CVE-2023-7158 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.69% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-7158?
High: CVSS 7.3 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-7158?
MicroPython 1.13.0; 1.14.0; 1.15.0; 1.16.0; 1.17.0; 1.18.0; 1.19.0; 1.20.0; 1.21.0.
Is there a fix for CVE-2023-7158?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2023-7158?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.