CVE-2026-133467 PUBLISHED

CodeSafe: safe_eval Sandbox Escape via Indirect Subscript Call

Assigner: GitHub_M
Reserved: 19.11.2026 Published: 25.11.2026 Updated: 25.11.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 9.8

Product Status

Vendor Infinitode
Product CodeSafe
Versions
  • Version >= 0.0.1, < 0.0.5 is affected

References

Problem Types

  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code CWE
  • CWE-693: Protection Mechanism Failure CWE