cve.bz

CVE-2024-8948 micropython micropython: Out-of-bounds Write

6.9 mediumExploit referenceEPSS 1.0%Fix available

Medium (6.9) in micropython micropython. EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
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

CVSS 4.0

6.9 medium
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 63rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-09-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-8948 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-8948?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-8948?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-8948 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
micropython:micropython1.23.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vh3x-525m-jp4rPyPImicropython-copy<=3.3.3.post3no fix published
GHSA-vh3x-525m-jp4rPyPImicropython-io<=0.1no fix published
GHSA-vh3x-525m-jp4rPyPImicropython-os<=0.8no fix published
PYSEC-2024-87PyPImicropython-copyall versionsno fix published
PYSEC-2024-88PyPImicropython-ioall versionsno fix published
PYSEC-2024-89PyPImicropython-osall versionsno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14micropython1.24.0+ds-1DEBIAN-CVE-2024-8948
Ubuntu22.04:LTS, 24.04:LTS, Pro:20.04:LTSmicropythonno fix listedUBUNTU-CVE-2024-8948

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON