CVE-2025-22153: RestrictedPython - Insecure Deserialization
- Cve: CVE-2025-22153
- Name: RestrictedPython - Insecure Deserialization
- 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 RestrictedPython by removing support for `try/except*` clauses. No known workarounds are available.
- Impact: Attackers can bypass security restrictions, potentially leading to arbitrary code execution or privilege escalation.
- Remediation: Upgrade to RestrictedPython version 8.0 or later.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: privilege_escalation
- Requirement type: user_interaction
- Requirements: Attacker needs to craft input using `try/except*`
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.9
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L
- Epss score: 0.004
- Epss percentile: 0.34968
- Assignee: [email protected]
- Published at: 2025-01-23T18:15:33Z
- Age in days: 670
- Modified at: 2026-06-17T08:45:23Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-22153
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-843 | Access of Resource Using Incompatible Type |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| zope:restrictedpython | >= 6.0, < 8.0 | no | cna_alias_text | /v1/products/zope/restrictedpython |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| zopefoundation/RestrictedPython | commit, fix, package, security_advisory | yes | /v1/repositories/zopefoundation/RestrictedPython |
Index
- Repositories: 4
- Repositories high signal: 3
- Packages: 1
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts