CVE-2024-8947
MicroPython objarray.c use after free
Reported by vuldb · Published September 17, 2024
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | MicroPython | 1.22.2 |
| micropython | micropython | 1.22.2 |
| n/a | MicroPython | 1.22.2 |
| PyPI | micropython-copy | 0 |
| PyPI | micropython-io | 0 |
Timeline
- Sep 17, 2024 CVE Published
- Sep 17, 2024 CVE Updated
- Sep 17, 2024 PoC Published (2 in total, the first dated here)
- Sep 18, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (6 in total, the first dated here)
- Mar 9, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-8947
vulnetix vdb fixes CVE-2024-8947
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-8947/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- VDB-277765 | MicroPython objarray.c use after free vdb-entry
- VDB-277765 | CTI Indicators (IOB, IOC, IOA) signaturepermissions-required
- Submit #409316 | micropython v1.22.2 Use After Free third-party-advisory
- issue-tracking
- issue-tracking
- patch
- patch
- https://nvd.nist.gov/vuln/detail/CVE-2024-8947 advisory
- https://github.com/advisories/GHSA-pwwp-3q7j-9mx8 advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-92.yaml advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-94.yaml advisory