Home / MicroPython / MicroPython / CVE-2023-7152
CVE-2023-7152: is it exploited, and which versions of MicroPython are affected and fixed?
CVE-2023-7152 is an use after free vulnerability in MicroPython. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: MicroPython 1.21.0 and MicroPython 1.22.0-preview (CVE record by VulDB). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (5.5, CVSS 3.1, from VulDB).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:33 UTC.
What is CVE-2023-7152?
MicroPython modselect.c poll_set_add_fd use after free
A vulnerability, which was classified as critical, has been found in MicroPython 1.21.0/1.22.0-preview. Affected by this issue is the function poll_set_add_fd of the file extmod/modselect.c. The manipulation leads to use after free. The exploit has been disclosed to the public and may be used. The patch is identified as 8b24aa36ba978eafc6114b6798b47b7bfecdca26. It is recommended to apply a patch to fix this issue. VDB-249158 is the identifier assigned to this vulnerability.
From the CVE record by VulDB, last updated February 13, 2025, 17:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| MicroPython | 1.21.0 1.22.0-preview |
As the CVE record by VulDB states it, last updated February 13, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| micropython | micropython | 1.21.0 | application |
| micropython | micropython | 1.22.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:52 UTC.
How severe is CVE-2023-7152?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.5 | CVSS 3.1 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | VulDB |
| Medium 5.5 | CVSS 3.0 | CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | VulDB |
| Medium 5.2 | CVSS 2.0 | AV:A/AC:L/Au:S/C:P/I:P/A:P | VulDB |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-7152 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.89% probability of exploitation activity in the next 30 days, percentile 60.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-416 Use After Free
Where are the vendor advisories and references?
- https://vuldb.com/?id.249158 vdb-entry, technical-description
- https://vuldb.com/?ctiid.249158 signature, permissions-required
- https://github.com/micropython/micropython/issues/12887 exploit, issue-tracking
- https://github.com/jimmo/micropython/commit/8b24aa36ba978eafc6114b6798b47b7bfecdca26 patch
- https://lists.fedoraproject.org/archives/list/[email protected]/message/TEK46QAJOXXDZOWOIE2YACUOCZFWOBCK/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7/
Who found and reported it?
- Junwha Hong (finder)
- Wonil Jang (finder)
- qbit (VulDB User) (analyst)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- December 28, 2023
- Published
- December 29, 2023, 04:31 UTC
- CVE record updated
- February 13, 2025, 17:27 UTC by VulDB
- NVD
- Modified, last modified June 17, 2026, 06:52 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:33 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect MicroPython?
- Feb 6, 2026CVE-2026-1998 micropython: memory corruption (buffer overflow)
- Sep 17, 2024CVE-2024-8948 MicroPython: heap buffer overflow
- Sep 17, 2024CVE-2024-8947 MicroPython: use after free
- Sep 17, 2024CVE-2024-8946 MicroPython: heap buffer overflow
- Dec 29, 2023CVE-2023-7158 MicroPython: heap buffer overflow
Questions about CVE-2023-7152
Is CVE-2023-7152 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 0.89% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of MicroPython are affected by CVE-2023-7152?
MicroPython 1.21.0 and MicroPython 1.22.0-preview, per the CVE record by VulDB. The tables above give every range the sources list.
Which version fixes CVE-2023-7152?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2023-7152?
Medium (5.5, CVSS 3.1, from VulDB). The severity table above shows each score with its source.
Where is the official record of CVE-2023-7152?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.