{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-22153","id":"CVE-2025-22153","title":"try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter","description":"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 R","descriptionLong":"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.","published":"2025-01-23T17:34:27.056Z","updated":"2026-10-28T02:30:34.793914565Z","reserved":"2024-12-30T03:00:33.655Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":7.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":7.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L","rating":"high","source":"GitHub"}],"rating":"high","products":["zopefoundation RestrictedPython"],"affectedProducts":[{"vendor":"zopefoundation","product":"RestrictedPython","defaultStatus":null,"versions":[{"version":">= 6.0, < 8.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"restrictedpython","purl":"pkg:pypi/restrictedpython","ranges":[">=6.0 <8.0"],"fixed":["8.0"],"advisory":"GHSA-gmj9-h825-chq2"}],"cwes":["CWE-843"],"aliases":["GHSA-gmj9-h825-chq2","PYSEC-2026-1874"],"references":[{"url":"https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-gmj9-h825-chq2","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/zopefoundation/RestrictedPython/commit/48a92c5bb617a647cffd0dadd4d5cfe626bcdb2f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22153.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22153","tags":["advisory"]},{"url":"https://github.com/zopefoundation/RestrictedPython","tags":["package"]},{"url":"https://pypi.org/project/restrictedpython","tags":["package"]},{"url":"https://github.com/advisories/GHSA-gmj9-h825-chq2","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.004,"epssPercentile":0.3496,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-22153","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22153","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-22153","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gmj9-h825-chq2","ok":true,"note":"GHSA-gmj9-h825-chq2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-22153","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}