High

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

  • Disclosed: 17.09.2024
  • Updated: 11.10.2026 12:20

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) micropython-copy all versions no fix
Python (PyPI) micropython-io all versions no fix
Python (PyPI) micropython-os all versions no fix

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-122, CWE-787
Platform
Python (PyPI)
Package
micropython-copy, micropython-io, micropython-os
Disclosed
17.09.2024
Updated
11.10.2026 12:20

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2024-87 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2024-88 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-vh3x-525m-jp4r - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2024-89 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: micropython-copy

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
12.2023 09.2024
Without a fix
4
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 3

Disclosures per year

  1. 2023: 1
  2. 2024: 3
  3. 2025: 0
  4. 2026: 0
  1. 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 this entry
    High · 7.5 CVE-2024-8948 all versions no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.