CVE-2023-7158MicroPython 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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | giac | Fix pending | UBUNTU-CVE-2023-7158 | |
| Ubuntu 26.04 | giac | Under investigation | UBUNTU-CVE-2023-7158 | |
| Ubuntu 25.10 | giac | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-7158 | |
| Ubuntu 24.04 | giac | Under investigation | UBUNTU-CVE-2023-7158 | |
| Ubuntu 22.04 | giac | Under investigation | UBUNTU-CVE-2023-7158 | |
| Ubuntu 20.04 | giac | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-7158 | |
| Ubuntu 18.04 | giac | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-7158 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- MicroPython: affected: 1.13.0, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.18.0
Vendor advisories:
- https://github.com/micropython/micropython/pull/13039/commits/f397a3ec318f3ad05aa287764ae… (patch)
- https://github.com/micropython/micropython/releases/tag/v1.22.0 (patch)
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/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.