MicroPython objslice.c slice_indices heap-based overflow
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-122 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | 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 | — | No fix listed | CNA |
- MicroPython Vendor— Affected 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 CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:micropython:micropython:*:*:*:*:*:*:*:* | before 1.22.0 | Vulnerable | Micropython |
- cpe:2.3:a:micropython:micropython:*:*:*:*:*:*:*:* Versions before 1.22.0 Vulnerable ·Micropython
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-7158
- 2026-10-03 Alias added: GHSA-x33q-m927-7mq6
References
Patch 2
Other 4
- https://github.com/micropython/micropython/pull/13039
- https://lists.fedoraproject.org/archives/list/[email protected]/message/TEK46QAJOXXDZOWOIE2YACUOCZFWOBCK/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7/
More Micropython vulnerabilities
- TI-2024-08308 MicroPython objint.c mpz_as_bytes heap-based overflow CVSS 4.0MEDIUM 6.9
- TI-2024-08306 MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow CVSS 4.0MEDIUM 6.9
- TI-2024-08307 MicroPython objarray.c use after free CVSS 4.0MEDIUM 6.3
- TI-2026-01655 micropython runtime.c mp_import_all memory corruption CVSS 4.0MEDIUM 4.8
- TI-2023-06540 MicroPython modselect.c poll_set_add_fd use after free CVSS 3.1CRITICAL 9.8
Sources
- CVE-2023-7158 · CVE Program
- CVE-2023-7158 · NVD
- FIRST EPSS
- GHSA-x33q-m927-7mq6 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-7158 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences