try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter
En bref
- Source
- OSV
- Publiée
- Mise à jour
- CVE
- CVE-2025-22153
- Alias
- PYSEC-2026-1874
- CVSS_V3
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L
- Criticité de la CVE
- HIGH 7.9 · CVE-2025-22153
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
Références
- https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-gmj9-h825-chq2 WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-22153 ADVISORY
- https://github.com/zopefoundation/RestrictedPython/commit/48a92c5bb617a647cffd0dadd4d5cfe626bcdb2f WEB
- https://github.com/zopefoundation/RestrictedPython PACKAGE
Paquets affectés
| Paquet | Versions |
|---|---|
| PyPI · restrictedpython | introduced 6.0, fixed 8.0 |
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |