CVEfocus › CVE database › CVE-2024-8947

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

CVSS 5.6 MediumEPSS 1.0% (higher than 64% of CVEs)Published 2024-09-17Updated 2024-09-17Assigner: VulDB

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.

CWE-416

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

PyPI, Ubuntu have 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

2Fixed
5Fix pending
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04micropythonNot affected
vulnerable_code_not_present
Ubuntu 25.10micropythonNot affected
vulnerable_code_not_present
Ubuntu 24.04micropythonFix pending1.22.1+ds-1ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-8947
Ubuntu 22.04micropythonFix pending1.17+ds-1.1ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-8947
Ubuntu 20.04micropythonFix pending1.12-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-8947
Debian 14micropythonFixed1.24.0+ds-1DEBIAN-CVE-2024-8947
Debian 13micropythonFixed1.24.0+ds-1DEBIAN-CVE-2024-8947
PyPI librarymicropython-copyFix pendingPYSEC-2024-92
PyPI librarymicropython-ioFix pendingGHSA-pwwp-3q7j-9mx8

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.

Vendor advisories:

References

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.