# CVE-2024-8946: MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 64% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-09-17T18:31:04.213Z
- Modified: 2026-06-17T08:23:36.507Z
- Also known as: GHSA-74qm-4v7r-jw2f, PYSEC-2024-91, PYSEC-2024-93, PYSEC-2024-95, PYSEC-2024-96
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- MicroPython: 1.23.0
- micropython micropython: 1.23.0
- micropython-copy (PyPI): up to 3.3.3.post3; before 29943546343c92334e8518695a11fc0e2ceea68b; all versions
- micropython-io (PyPI): up to 0.1; before 29943546343c92334e8518695a11fc0e2ceea68b; all versions
- micropython-os-path (PyPI): up to 0.1.3; before 29943546343c92334e8518695a11fc0e2ceea68b; all versions
- micropython-string (PyPI): up to 0.1; before 29943546343c92334e8518695a11fc0e2ceea68b; all versions

## Every score

- VulDB: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- VulDB: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- GitHub: CVSS:3.1 7.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/micropython/micropython/issues/13006> (exploit, evidence, issue-tracking, report, web)
- <https://github.com/micropython/micropython/issues/13006#issuecomment-1820309455> (exploit, evidence, issue-tracking, report, third-party-advisory, web)
- <https://vuldb.com/?id.277764> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.277764> (permissions-required, signature, web)
- <https://vuldb.com/?submit.409312> (third-party-advisory, web)
- <https://github.com/micropython/micropython/commit/29943546343c92334e8518695a11fc0e2ceea68b> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-8946> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-91.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-93.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/micropython-os-path/PYSEC-2024-95.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/micropython-string/PYSEC-2024-96.yaml> (web)
- <https://github.com/advisories/GHSA-74qm-4v7r-jw2f> (advisory)

## Sources

- CVE List: [CVE-2024-8946](https://www.cve.org/CVERecord?id=CVE-2024-8946), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-74qm-4v7r-jw2f](https://github.com/advisories/GHSA-74qm-4v7r-jw2f), CC-BY-4.0, modified 2024-09-25
- NVD: [CVE-2024-8946](https://nvd.nist.gov/vuln/detail/CVE-2024-8946), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-91](https://osv.dev/vulnerability/PYSEC-2024-91), CC-BY-4.0, modified 2024-09-25
- PyPA Advisory Database: [PYSEC-2024-93](https://osv.dev/vulnerability/PYSEC-2024-93), CC-BY-4.0, modified 2024-09-25
- PyPA Advisory Database: [PYSEC-2024-95](https://osv.dev/vulnerability/PYSEC-2024-95), CC-BY-4.0, modified 2024-09-25
- PyPA Advisory Database: [PYSEC-2024-96](https://osv.dev/vulnerability/PYSEC-2024-96), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-8946 · Whole record: https://cve.day/CVE-2024-8946.json · Rebuilt by cve.day 2026-11-25T22:58:45.514Z
