zopefoundation/restrictedpython · Security

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

GHSA ID
GHSA-gmj9-h825-chq2
CVE ID
CVE-2025-22153
Severity
high
Published
Updated
CVSS
7.9 · CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L
CVSS v3
7.9 · CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L

Description

Impact

Via a type confusion bug in the CPython interpreter when using try/except* RestrictedPython could be bypassed.

We believe this should be fixed upstream in Python itself until that we remove support for try/except* from RestrictedPython. (It has been fixed for some Python versions.)

Patches

Patched in version 8.0 by removing support for try/except* clauses

Workarounds

There is no workaround.

References

none

CWEs

References