# CVE-2023-7158: MicroPython objslice.c slice\_indices heap-based overflow

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.22.0 (CNA); fix release not confirmed
- Status: published
- Published: 2023-12-29 · Modified: 2025-02-13
- Aliases: UBUNTU-CVE-2023-7158, openSUSE-SU-2024:13566-1
- Record: https://cvemate.com/vulnerability/CVE-2023-7158 · JSON: https://cvemate.com/vulnerability/CVE-2023-7158/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.228%, percentile 69.874%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- ubuntu giac (Ubuntu): All versions (No fix recorded)
- micropython micropython: \< 1.22.0
- opensuse micropython&distro=openSUSE Tumbleweed (openSUSE): \< 1.22.0-1.1

## References

- <https://vuldb.com/?id.249180>
- <https://vuldb.com/?ctiid.249180>
- <https://github.com/micropython/micropython/issues/13007>
- <https://github.com/micropython/micropython/pull/13039>
- <https://github.com/micropython/micropython/pull/13039/commits/f397a3ec318f3ad05aa287764ae7cef32202380f>
- <https://github.com/micropython/micropython/releases/tag/v1.22.0>
- <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/>
- <https://ubuntu.com/security/CVE-2023-7158>
- <https://www.cve.org/CVERecord?id=CVE-2023-7158>
- <https://www.suse.com/security/cve/CVE-2023-7158>

---

Data as of 2026-12-05T06:26:25.597Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
