Advisory

GHSA-vh3x-525m-jp4r

Also known as: CVE-2024-8948, PYSEC-2024-87, PYSEC-2024-88, PYSEC-2024-89

Summary

heap-buffer-overflow in MicroPython

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-09-17 21:30 UTC
Modified
2024-09-24 18:12 UTC

Affected packages and fixes

micropython-copy

PyPI · All systems

Affected

  • introduced 0, last affected 3.3.3.post3 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

micropython-io

PyPI · All systems

Affected

  • introduced 0, last affected 0.1 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

micropython-os

PyPI · All systems

Affected

  • introduced 0, last affected 0.8 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences