CVE-2024-8948
MEDIUM 6.9CVSS 4.0heap-buffer-overflow in MicroPython
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.
- Published
- 17 Sep 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Analyzed
- Weakness
- CWE-122CWE-787
- Also known as
- GHSA-vh3x-525m-jp4rPYSEC-2024-87PYSEC-2024-88PYSEC-2024-89
- Sources
- NVDJSONOSV GHSA-vh3x-525m-jp4rJSONOSV PYSEC-2024-87JSONOSV PYSEC-2024-88JSONOSV PYSEC-2024-89JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@vuldb.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | micropython | micropythoncpe:2.3:a:micropython:micropython:1.23.0:*:*:*:*:*:*:* |
= 1.23.0 | |
| OSV | PyPI | micropython-copy | <= 3.3.3.post3 | |
| OSV | PyPI | micropython-io | <= 0.1 | |
| OSV | PyPI | micropython-os | <= 0.8 | |
| OSV | PyPI | micropython-copy | all versions | |
| OSV | PyPI | micropython-io | all versions | |
| OSV | PyPI | micropython-os | all versions |
References
- https://github.com/micropython/micropython/commit/908ab1ceca15ee6fd0ef82ca4cba770a3ec41894 · Patch, WEB, FIX
- https://github.com/micropython/micropython/issues/13041 · Exploit, Issue Tracking, Third Party Advisory, WEB, REPORT, EVIDENCE
- https://vuldb.com/?ctiid.277766 · Permissions Required, WEB
- https://vuldb.com/?id.277766 · Third Party Advisory, WEB
- https://vuldb.com/?submit.409317 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-8948 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-87.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-88.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/micropython-os/PYSEC-2024-89.yaml · WEB
- https://github.com/advisories/GHSA-vh3x-525m-jp4r · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 17 Sep 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Sep 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Sep 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Sep 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Sep 2024)