Vulnerability · Published Sep 17, 2024 · Assigned by VulDB

CVE-2024-8947MicroPython objarray.c use after free

Medium 5.6

In plain English

A medium-severity use-after-free in MicroPython. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)1.0%top 36.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13micropython1.24.0+ds-1DEBIAN-CVE-2024-8947
Debian:14micropython1.24.0+ds-1DEBIAN-CVE-2024-8947
PyPImicropython-copyno fix listedGHSA-pwwp-3q7j-9mx8
PyPImicropython-copyno fix listedPYSEC-2024-92
PyPImicropython-iono fix listedGHSA-pwwp-3q7j-9mx8
PyPImicropython-iono fix listedPYSEC-2024-94

Affected products (as reported)

VendorProductVersions
n/a MicroPython 1.22.2

Weakness: CWE-416 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

References