CVE-2023-7152Micropython
Critical 9.8 No auth needed
Follow: this CVE · Micropython · Micropython We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 71
- Auth required
- No
- Published
- Dec 29, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-416
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Micropython.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | micropython-copy |
all |
no fixed version | — |
| PyPI | micropython-io |
all |
no fixed version | — |
| PyPI | micropython-os |
all |
no fixed version | — |
| PyPI | micropython-select |
all |
no fixed version | — |
Per OSV / GitHub Advisories (PYSEC-2023-256, PYSEC-2023-257, PYSEC-2023-258, PYSEC-2023-259). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| micropython | micropython | 1.21.0 |
| micropython | micropython | 1.22.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Issue Tracking
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- vuldb.com Permissions Required Third Party Advisory VDB Entry
- vuldb.com Third Party Advisory VDB Entry