PyPi: Micropython-Copy

CVE-2024-8947

Safety vulnerability ID: 78771

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 Use After Free due to improper handling of resized bytes objects that copy into themselves in the `py/objarray.c` module. The vulnerability arises when a bytes object is resized and self-copied without adequate memory management, causing the code to reference memory that has already been freed. An attacker can exploit this remotely by triggering the flawed resizing operation—though the complexity of such an attack is rather high and exploitation appears difficult—which may lead to memory corruption, instability or potential code execution.

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 8.1

CVSS v3 Details

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