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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | micropython | 1.24.0+ds-1 | DEBIAN-CVE-2024-8947 |
| Debian:14 | micropython | 1.24.0+ds-1 | DEBIAN-CVE-2024-8947 |
| PyPI | micropython-copy | no fix listed | GHSA-pwwp-3q7j-9mx8 |
| PyPI | micropython-copy | no fix listed | PYSEC-2024-92 |
| PyPI | micropython-io | no fix listed | GHSA-pwwp-3q7j-9mx8 |
| PyPI | micropython-io | no fix listed | PYSEC-2024-94 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- VDB-277765 | MicroPython objarray.c use after free vdb-entry
- VDB-277765 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #409316 | micropython v1.22.2 Use After Free third-party-advisory
- https://github.com/micropython/micropython/issues/13283 issue-tracking
- https://github.com/micropython/micropython/issues/13283#issuecomment-1918479709 issue-tracking
- https://github.com/micropython/micropython/commit/4bed614e707c0644c06e117f848fa12605c711cd patch
- https://github.com/micropython/micropython/releases/tag/v1.23.0 patch