cbcvebase.
CVE-2025-22153
published 2025-01-23

CVE-2025-22153: 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…

PriorityP343high7.9CVSS 3.1
AVNACHPRHUINSCCHIHAL
EPSS
0.39%
30.6th percentile
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.

Affected

8 ranges
VendorProductVersion rangeFixed in
debianrestrictedpython< restrictedpython 8.0-1 (forky)restrictedpython 8.0-1 (forky)
zopefoundationrestrictedpython
zopefoundationrestrictedpython>= 0 < 8.0-18.0-1
zopefoundationrestrictedpython>= 0 < 8.0-18.0-1
zopefoundationrestrictedpython>= 0 < 4.0~b3-2ubuntu0.1~esm14.0~b3-2ubuntu0.1~esm1
zopefoundationrestrictedpython>= 0 < 4.0~b3-3ubuntu0.1~esm14.0~b3-3ubuntu0.1~esm1
zopefoundationrestrictedpython>= 0 < 6.2-1ubuntu0.24.04.1~esm16.2-1ubuntu0.24.04.1~esm1
zopefoundationrestrictedpython>= 6.0 < 8.08.0

CVSS provenance

nvdv3.17.9HIGHCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L
osv9.9CRITICAL
vendor_ubuntu8.4HIGH
vendor_debian7.9LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.