id: PYSEC-2024-89 modified: 2024-09-23T21:22:09.689786Z published: 2024-09-17T19:15:00Z aliases: - CVE-2024-8948 - GHSA-vh3x-525m-jp4r 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. affected: - package: ecosystem: PyPI name: micropython-os purl: pkg:pypi/micropython-os ranges: - type: GIT events: - introduced: "0" - fixed: 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 repo: https://github.com/micropython/micropython - type: ECOSYSTEM events: - introduced: "0" versions: - 0.2.3 - 0.2.4 - "0.3" - 0.3.1 - 0.4.1 - 0.4.2 - 0.4.3 - 0.4.4 - "0.6" - "0.7" - 0.7.1 - "0.8" severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H references: - type: WEB url: https://vuldb.com/?id.277766 - type: WEB url: https://vuldb.com/?ctiid.277766 - type: WEB url: https://vuldb.com/?submit.409317 - type: EVIDENCE url: https://github.com/micropython/micropython/issues/13041 - type: REPORT url: https://github.com/micropython/micropython/issues/13041 - type: FIX url: https://github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 - type: ADVISORY url: https://github.com/advisories/GHSA-vh3x-525m-jp4r