Home / MicroPython / MicroPython / CVE-2023-7158
CVE-2023-7158: is it exploited, and which versions of MicroPython are affected and fixed?
CVE-2023-7158 is a heap buffer overflow vulnerability in MicroPython. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: MicroPython 1.13.0, MicroPython 1.14.0, MicroPython 1.15.0 and 6 more (CVE record by VulDB). Fixed in 1.22.0 (NVD). Severity: High (7.3, CVSS 3.1, from VulDB).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:33 UTC.
What is CVE-2023-7158?
MicroPython objslice.c slice_indices heap-based overflow
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.
From the CVE record by VulDB, last updated February 13, 2025, 17:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| 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 |
As the CVE record by VulDB states it, last updated February 13, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| micropython | micropython | before 1.22.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:52 UTC.
How severe is CVE-2023-7158?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | VulDB |
| High 7.3 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | VulDB |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | VulDB |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-7158 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.23% probability of exploitation activity in the next 30 days, percentile 69.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://vuldb.com/?id.249180 vdb-entry, technical-description
- https://vuldb.com/?ctiid.249180 signature, permissions-required
- https://github.com/micropython/micropython/issues/13007 exploit, issue-tracking
- https://github.com/micropython/micropython/pull/13039 issue-tracking
- https://github.com/micropython/micropython/pull/13039/commits/f397a3ec318f3ad05aa287764ae7cef32202380f issue-tracking, patch
- https://github.com/micropython/micropython/releases/tag/v1.22.0 patch
- 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/
Who found and reported it?
- qbit (VulDB User) (analyst)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- December 28, 2023
- Published
- December 29, 2023, 06:31 UTC
- CVE record updated
- February 13, 2025, 17:27 UTC by VulDB
- NVD
- Modified, last modified June 17, 2026, 06:52 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:33 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect MicroPython?
- Feb 6, 2026CVE-2026-1998 micropython: memory corruption (buffer overflow)
- Sep 17, 2024CVE-2024-8948 MicroPython: heap buffer overflow
- Sep 17, 2024CVE-2024-8947 MicroPython: use after free
- Sep 17, 2024CVE-2024-8946 MicroPython: heap buffer overflow
- Dec 29, 2023CVE-2023-7152 MicroPython: use after free
Questions about CVE-2023-7158
Is CVE-2023-7158 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 1.23% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of MicroPython are affected by CVE-2023-7158?
MicroPython 1.13.0, MicroPython 1.14.0, MicroPython 1.15.0, MicroPython 1.16.0, MicroPython 1.17.0, MicroPython 1.18.0 and 3 more, per the CVE record by VulDB. The tables above give every range the sources list.
Which version fixes CVE-2023-7158?
1.22.0, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-7158?
High (7.3, CVSS 3.1, from VulDB). The severity table above shows each score with its source.
Where is the official record of CVE-2023-7158?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.