CVE-2026-133467Infinitode CodeSafe
Remote Code Execution in CodeSafe via safe_eval() Bypass
Critical 9.8 No auth neededRecent
Follow: this CVE · Infinitode · Infinitode CodeSafe We alert you by email or Slack (account required).
- Priority
- 81
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Nov 25, 2026
- Updated
- Nov 30, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
CodeSafe is an open-source Python library for code encryption and safe evaluation. Versions 0.0.1 through 0.0.4 allow arbitrary Python code execution via indirect subscript calls to dangerous functions like builtins.exec, as AST validation only blocks direct calls. An attacker controlling an expression passed to safe_eval() can execute code with the host application's permissions.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 0.0.5
Update CodeSafe to version 0.0.5 or later to apply the AST validation fix.
- Apply the vendor's security update for CodeSafe.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- Infinitode · CodeSafe
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.