CVE-2023-7158
CWE-122Published: December 29, 2023· Updated: Jun 17, 2026
Official 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.
Risk Analysis
This vulnerability in MicroPython allows for a heap-based buffer overflow through the slice_indices function. Given its critical CVSS score of 9.8, it poses a significant risk as it can be exploited remotely without authentication.
There is no known public exploit for this vulnerability, and it is not currently listed in CISA's KEV catalog.
Users should upgrade to MicroPython version 1.22.0 to address this issue.
Technical Analysis
CVE-2023-7158 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.8.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (18)
Quick Facts
Related CVEs (CWE-122)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2023-7158 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts