Heap-based buffer overflow in micropython - CVE-2023-7158
Published: March 28, 2024
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the slice_indices() function in objslice.c. A remote attacker can pass specially crafted data to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Fedora
micropython
How to mitigate CVE-2023-7158
micropython - addressed in versions 1.22.2-1.fc38, 1.22.2-1.fc39, 1.22.2-1.fc40, 1.22.2-1.fc41
External References
- https://vuldb.com/?id.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