PoC Monitor
← All CVEs
CVE-2025-22153published 23 Jan 2025 17:34 UTCData: JSON · API

Zopefoundation RestrictedPython

try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter

RestrictedPython is a tool that helps to define a subset of the Python language which allows to provide a program input into a trusted environment. Via a type confusion bug in versions of the CPython interpreter starting in 3.11 and prior to 3.13.2 when using `try/except*`, RestrictedPython starting in version 6.0 and prior to version 8.0 could be bypassed. The issue is patched in version 8.0 of RestrictedPython by removing support for `try/except*` clauses. No known workarounds are available.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.9high · scored by CNA · CWE-843
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

zopefoundation RestrictedPython
  • >= 6.0, < 8.0

Fixed in 8.0

Mitigation

Upgrade RestrictedPython to 8.0 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published23 Jan 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

1 not a PoC

Not a PoC 1
RepositoryCreatedStarsAssessment
Andy-you/CVE-Reproducer-System 2 May 2026 +1.3 y 1 Not a PoC · unrelated

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.