Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. micropython-copy
  4. ›
  5. CVE-2024-8946

CVE-2024-8946: Heap-based Buffer Overflow in MicroPython

September 17, 2024 (updated September 25, 2024)

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.

References

  • github.com/advisories/GHSA-74qm-4v7r-jw2f
  • github.com/micropython/micropython/commit/29943546343c92334e8518695a11fc0e2ceea68b
  • github.com/micropython/micropython/issues/13006
  • github.com/micropython/micropython/issues/13006
  • github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-91.yaml
  • github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-93.yaml
  • github.com/pypa/advisory-database/tree/main/vulns/micropython-os-path/PYSEC-2024-95.yaml
  • github.com/pypa/advisory-database/tree/main/vulns/micropython-string/PYSEC-2024-96.yaml
  • nvd.nist.gov/vuln/detail/CVE-2024-8946
  • vuldb.com/?ctiid.277764
  • vuldb.com/?id.277764
  • vuldb.com/?submit.409312

Code Behaviors & Features

Detect and mitigate CVE-2024-8946 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.3.3.post3

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-122: Heap-based Buffer Overflow
  • CWE-787: Out-of-bounds Write

Source file

pypi/micropython-copy/CVE-2024-8946.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:45 +0000.