PyPi: Micropython-Copy

CVE-2024-8948

Safety vulnerability ID: 78774

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Sep 17, 2024 Updated at Aug 18, 2025
Scan your Python projects for vulnerabilities →

Advisory

Affected versions of the MicroPython package are vulnerable to Heap-Based Buffer Overflow due to improper handling of integer-to-bytes conversion when the integer zero is passed to the `mpz_as_bytes` function in `py/objint.c`. The `mpz_as_bytes` function in the `py/objint.c` module fails to correctly manage buffer boundaries during conversion of zero from an integer to a bytes object, resulting in a heap-buffer-overflow write. An attacker can exploit this vulnerability remotely by supplying a crafted conversion input that triggers the flawed code path in `mpz_as_bytes`, potentially causing memory corruption, application instability or denial of service of the MicroPython runtime.

Affected package

micropython-copy

Latest version: 3.3.3.post3

CPython copy module ported to MicroPython

Affected versions

Fixed versions

Vulnerability changelog

This vulnerability has no description

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

HIGH 7.5

CVSS v3 Details

HIGH 7.5
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
NONE
Integrity Impact (I)
NONE
Availability Availability (A)
HIGH