CVE-2023-7152
CVE-2023-7152 is a medium-severity vulnerability in Micropython with a CVSS 3.x base score of 5.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-416.
Key facts
- Severity: Medium (CVSS 3.x base score 5.5)
- CVSS v2: 5.2
- EPSS exploit prediction: 1% (55th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-416
- Affected product: Micropython
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2023-7152?
- 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.
- How severe is CVE-2023-7152?
- CVE-2023-7152 has a CVSS 3.x base score of 5.5, rated medium severity. It is exploitable over an adjacent network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability low.
- Is CVE-2023-7152 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (55th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-7152?
- CVE-2023-7152 primarily affects Micropython. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2023-7152?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2023-7152 published?
- CVE-2023-7152 was published on 2023-12-29 and last updated on 2026-06-17.
References
- https://github.com/jimmo/micropython/commit/8b24aa36ba978eafc6114b6798b47b7bfecdca26
- https://github.com/micropython/micropython/issues/12887
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/TEK46QAJOXXDZOWOIE2YACUOCZFWOBCK/
- https://vuldb.com/?ctiid.249158
- https://vuldb.com/?id.249158
Affected products (2)
- cpe:2.3:a:micropython:micropython:1.21.0:*:*:*:*:*:*:*
- cpe:2.3:a:micropython:micropython:1.22.0:preview:*:*:*:*:*:*
More vulnerabilities in Micropython
- CVE-2024-8948 — High (CVSS 7.3): A vulnerability was found in MicroPython 1.23.0. It has been rated as critical. Affected by this issue is the function…
- CVE-2024-8946 — High (CVSS 7.3): A vulnerability was found in MicroPython 1.23.0. It has been classified as critical. Affected is the function…
- CVE-2023-7158 — High (CVSS 7.3): A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function…
- CVE-2024-8947 — Medium (CVSS 5.6): A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an…
- CVE-2026-1998 — Low (CVSS 3.3): A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file…
All CVEs affecting Micropython →
Other CWE-416 (Use After Free) vulnerabilities
- CVE-2026-13782 — Critical (CVSS 10.0): Use after free in Browser in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the…
- CVE-2026-4725 — Critical (CVSS 10.0): Sandbox escape due to use-after-free in the Graphics: Canvas2D component. This vulnerability was fixed in Firefox 149…
- CVE-2026-4688 — Critical (CVSS 10.0): Sandbox escape due to use-after-free in the Disability Access APIs component. This vulnerability was fixed in Firefox…
- CVE-2025-24085 — Critical (CVSS 10.0): A use after free issue was addressed with improved memory management. This issue is fixed in iOS 18.3 and iPadOS 18.3,…
- CVE-2024-43102 — Critical (CVSS 10.0): Concurrent removals of certain anonymous shared memory mappings by using the UMTX_SHM_DESTROY sub-request of…
- CVE-2021-32495 — Critical (CVSS 10.0): Radare2 has a use-after-free vulnerability in pyc parser's get_none_object function. Attacker can read freed memory…