CVE-2024-8948
published medium CVSS 4.0 · 6.9MicroPython objint.c mpz_as_bytes heap-based overflow
Package status and fixes
Description
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.
Eine kritische Schwachstelle wurde in MicroPython 1.23.0 ausgemacht. Es geht hierbei um die Funktion mpz_as_bytes der Datei py/objint.c. Mittels dem Manipulieren mit unbekannten Daten kann eine heap-based buffer overflow-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk angegangen werden. Der Exploit steht zur öffentlichen Verfügung. Der Patch wird als 908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 bezeichnet. Als bestmögliche Massnahme wird Patching empfohlen.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.3 | high | VulDB · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | — |
| 3.0 | 7.3 | high | VulDB · cna | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | — |
| 2.0 | 7.5 | high | VulDB · cna | AV:N/AC:L/Au:N/C:P/I:P/A:P | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | MicroPython | 1.23.0 (affected) | VulDB · cna |
| micropython | micropython | 1.23.0 (affected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-122 Heap-based Buffer Overflow
References
5- https://github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894
- https://github.com/micropython/micropython/issues/13041
- VDB-277766 | CTI Indicators (IOB, IOC, IOA) https://vuldb.com/?ctiid.277766
- VDB-277766 | MicroPython objint.c mpz_as_bytes heap-based overflow https://vuldb.com/?id.277766
- Submit #409317 | micropython v1.23.0 Buffer Overflow https://vuldb.com/?submit.409317
Provider assertions
2VulDB · cna
MicroPython objint.c mpz_as_bytes heap-based overflow
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ba3c8dd83e396cad41977f2d64dd3c6a5e24891fbce67a801f62079629b7e16a
- Ingested
- 23 Sep 2026, 08:34:23 UTC
- Source record
- Official CVE record