9.8

CVE-2023-7152: micropython Use After Free

CVSS: 9.8v3.1CriticalModified
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 58.7% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.89%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known 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

59%

Versus all other CVEs

30-day change

0.00 pp

From 0.89% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.89%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Micropython

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

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