9.8

CVE-2023-7152: MicroPython modselect.c poll_set_add_fd use after free

Modified
AliasesPYSEC-2023-256PYSEC-2023-257PYSEC-2023-258
Published 29-12-2023Last modified 13-02-2025

Vulnerability summary

CVE-2023-7152 is a critical (CVSS 9.8) Use After Free vulnerability in micropython. EPSS estimates a 0.89% chance of exploitation in the next 30 days, higher than 60.6% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.5, adjacent network); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.89%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 29-12-2023
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 4 sources · 3 versions

EPSS trend

Probability

0.89%

Chance of exploitation in the next 30 days

Percentile

61%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.89% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Micropython

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: adjacent network, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

PyPI4 products
  • micropython-copy< 8b24aa36ba978eafc6114b6798b47b7bfecdca26 | All versions (No fix recorded)
  • micropython-io< 8b24aa36ba978eafc6114b6798b47b7bfecdca26 | All versions (No fix recorded)
  • micropython-os< 8b24aa36ba978eafc6114b6798b47b7bfecdca26 | All versions (No fix recorded)
  • micropython-select< 8b24aa36ba978eafc6114b6798b47b7bfecdca26 | All versions (No fix recorded)
Micropython1 product
Ubuntu1 product
  • giacAll versions (No fix recorded)

3 vendors · 6 products

References

9 links