CVE-2024-8946
MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow
Reported by vuldb · Published September 17, 2024
micropython-string is fixed in 29943546343c92334e8518695a11fc0e2ceea68b and 0.1 (PyPI)
A vulnerability was found in MicroPython 1.23.0. It has been classified as critical. Affected is the function mp_vfs_umount of the file extmod/vfs.c of the component VFS Unmount Handler. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. The name of the patch is 29943546343c92334e8518695a11fc0e2ceea68b. It is recommended to apply a patch to fix this issue. In the VFS unmount process, the comparison between the mounted path string and the unmount requested string is based solely on the length of the unmount string, which can lead to a heap buffer overflow read.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| micropython-string | PyPI | 29943546343c92334e8518695a11fc0e2ceea68b, 0.1 |
| micropython-io | PyPI | 0.1 |
| micropython-os-path | PyPI | 29943546343c92334e8518695a11fc0e2ceea68b |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | MicroPython | 1.23.0 |
| PyPI | micropython-io | 0 |
| micropython | micropython | 1.23.0 |
| PyPI | micropython-copy | 0 |
| n/a | MicroPython | 1.23.0 |
| PyPI | micropython-string | 0 |
| PyPI | micropython-os-path | 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-8946
vulnetix vdb fixes CVE-2024-8946
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-8946/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- VDB-277764 | MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow vdb-entrytechnical-description
- VDB-277764 | CTI Indicators (IOB, IOC, IOA) signaturepermissions-required
- Submit #409312 | micropython v1.23.0 Heap-based Buffer Overflow third-party-advisory
- exploitissue-tracking
- issue-tracking
- patch
- https://nvd.nist.gov/vuln/detail/CVE-2024-8946 advisory
- https://github.com/advisories/GHSA-74qm-4v7r-jw2f advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-91.yaml advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-93.yaml advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-os-path/PYSEC-2024-95.yaml advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-string/PYSEC-2024-96.yaml advisory