VDB

CVE-2024-8946

CVE-2024-8946 PUBLISHED CVSS 6.9 MEDIUM

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.

PackageEcosystemFixed in
micropython-stringPyPI29943546343c92334e8518695a11fc0e2ceea68b, 0.1
micropython-ioPyPI0.1
micropython-os-pathPyPI29943546343c92334e8518695a11fc0e2ceea68b

Risk scores

CVSS 4.0
6.9
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

Affected products

VendorProductVersions
n/aMicroPython1.23.0
PyPImicropython-io0
micropythonmicropython1.23.0
PyPImicropython-copy0
n/aMicroPython1.23.0
PyPImicropython-string0
PyPImicropython-os-path0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›