Vulnerability · Published Dec 29, 2023 · Assigned by VulDB
CVE-2023-7158MicroPython objslice.c slice_indices heap-based overflow
High 7.3
In plain English
A high-severity heap buffer overflow in MicroPython. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities).
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | giac | no fix listed | UBUNTU-CVE-2023-7158 |
| Ubuntu:24.04:LTS | giac | no fix listed | UBUNTU-CVE-2023-7158 |
| Ubuntu:25.10 | giac | no fix listed | UBUNTU-CVE-2023-7158 |
| Ubuntu:26.04:LTS | giac | no fix listed | UBUNTU-CVE-2023-7158 |
| Ubuntu:26.10 | giac | no fix listed | UBUNTU-CVE-2023-7158 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | MicroPython | 1.13.01.14.01.15.01.16.01.17.01.18.01.19.01.20.0 |
Weakness: CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
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/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/