CVE-2025-22153
Reported by github_m · Published January 23, 2025
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| zopefoundation | RestrictedPython | >= 6.0, < 8.0 |
| zopefoundation | RestrictedPython | 6.0 |
| PyPI | RestrictedPython | 6.0 |
Timeline
- Jan 23, 2025 CVE Published
- Jan 23, 2025 Coalition ESS Score (9 in total, the first dated here)
- Jan 23, 2025 PoC Published (3 in total, the first dated here)
- Jan 24, 2025 EPSS Score (30 in total, the first dated here)
- Feb 12, 2025 CVE Updated
- Dec 21, 2025 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-22153
vulnetix vdb fixes CVE-2025-22153
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-22153/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-gmj9-h825-chq2 x_refsource_CONFIRM
- https://github.com/zopefoundation/RestrictedPython/commit/48a92c5bb617a647cffd0dadd4d5cfe626bcdb2f x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-22153 advisory
- https://github.com/advisories/GHSA-gmj9-h825-chq2 advisory
- https://github.com/zopefoundation/RestrictedPython url