All reports
High

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

Affected versions

Version ranges need review.

Affected versions
>= 6.0, < 8.0
Fixed version
8.0
Affected versions
>=6.0 <8.0 || =6.0 || =6.1 || =6.2 || =7.0 || =7.0a1.dev0 || =7.0a1.dev1 || =7.0a2.dev0 || =7.1 || =7.2 || =7.2a1.dev0 || =7.3 || =7.4
Fixed version
8.0

Exploitation

CVE-2025-22153

Probability of exploitation in the next 30 days: 0.40%

FIRST EPSS · 2026-11-23

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

Links

Credits

  • icemac
  • Nico-Posada
  • dataflake
  • tseaver