ADVISORIES

Vulnerability

CVE-2024-8948

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.

6 advisories report this vulnerability, across 3 ecosystems.

Medium severity All PyPI 4Debian 1Ubuntu 1

Advisories in PyPI

  • GHSA-vh3x-525m-jp4r

    heap-buffer-overflow in MicroPython

    Moderate CVE-2024-8948 PyPI Updated 24 September 2024
  • PYSEC-2024-87

    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…

    CVE-2024-8948 PyPI Updated 24 September 2024
  • PYSEC-2024-88

    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…

    CVE-2024-8948 PyPI Updated 24 September 2024
  • PYSEC-2024-89

    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…

    CVE-2024-8948 PyPI Updated 10 June 2026

References