CVE-2026-133467 - CodeSafe: safe_eval Sandbox Escape via Indirect Subscript Call
Vulnerability · Reported by NVD · · CWE-693, CWE-95
- Severity
- Critical Risk score 98/100
- CVSS
- 9.8 v3.1 · from NVD
- Exploit chance (EPSS)
- 0.42% Higher than 28% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
CodeSafe is an open-source Python library for code encryption, decryption, and safe evaluation using Python's AST module. From versions 0.0.1 through 0.0.4, the safe_eval() function can be bypassed with indirect subscript calls such as builtins'exec', because AST validation blocks only direct calls to dangerous built-ins. An attacker who controls an expression passed to safe_eval() can execute arbitrary Python code with the permissions of the host application. This issue is fixed in version 0.0.5.
How this vulnerability can be exploited
An attacker can exploit this vulnerability remotely over the network, without any login, and without any action from a user. Attack complexity is low, so no special conditions are needed. If successful, the attacker could read sensitive data, modify data or code and crash or disrupt the service.
Is it being exploited?
The EPSS model estimates a 0.42% chance this CVE will be exploited in the next 30 days, which is low and higher than 28% of all published CVEs.
Patch priority and what to do
Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Tags
CVE-2026-133467
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-133467 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.