CVE-2024-8947MicroPython objarray.c use after free
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.
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
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.04 | micropython | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | micropython | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | micropython | Fix pending | 1.22.1+ds-1ubuntu0.24.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-8947 |
| Ubuntu 22.04 | micropython | Fix pending | 1.17+ds-1.1ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-8947 |
| Ubuntu 20.04 | micropython | Fix pending | 1.12-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-8947 |
| Debian 14 | micropython | Fixed | 1.24.0+ds-1 | DEBIAN-CVE-2024-8947 |
| Debian 13 | micropython | Fixed | 1.24.0+ds-1 | DEBIAN-CVE-2024-8947 |
| PyPI library | micropython-copy | Fix pending | PYSEC-2024-92 | |
| PyPI library | micropython-io | Fix pending | GHSA-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.
- MicroPython: affected: 1.22.2
Vendor advisories:
- https://github.com/micropython/micropython/commit/4bed614e707c0644c06e117f848fa12605c711cd (patch)
- https://github.com/micropython/micropython/releases/tag/v1.23.0 (patch)
References
- https://vuldb.com/?id.277765
- https://vuldb.com/?ctiid.277765
- https://vuldb.com/?submit.409316
- https://github.com/micropython/micropython/issues/13283
- https://github.com/micropython/micropython/issues/13283#issuecomment-1918479709
- https://github.com/micropython/micropython/commit/4bed614e707c0644c06e117f848fa12605c711cd
- https://github.com/micropython/micropython/releases/tag/v1.23.0
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.