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

CVE-2024-8948: heap-buffer-overflow in MicroPython

September 17, 2024 (updated September 24, 2024)

A vulnerability was found in MicroPython 1.23.0. It has been rated as critical. Affected by this issue is the function mpz_as_bytes of the file py/objint.c. The manipulation leads to heap-based buffer overflow. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The patch is identified as 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894. It is recommended to apply a patch to fix this issue. In micropython objint component, converting zero from int to bytes leads to heap buffer-overflow-write at mpz_as_bytes.

References

  • github.com/advisories/GHSA-vh3x-525m-jp4r
  • github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894
  • github.com/micropython/micropython/issues/13041
  • github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-87.yaml
  • github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-88.yaml
  • github.com/pypa/advisory-database/tree/main/vulns/micropython-os/PYSEC-2024-89.yaml
  • nvd.nist.gov/vuln/detail/CVE-2024-8948
  • vuldb.com/?ctiid.277766
  • vuldb.com/?id.277766
  • vuldb.com/?submit.409317

Code Behaviors & Features

Detect and mitigate CVE-2024-8948 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 0.1

Solution

Unfortunately, there is no solution available yet.

Impact 7.3 HIGH

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

Learn more about CVSS

Weakness

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

Source file

pypi/micropython-io/CVE-2024-8948.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:32 +0000.