NetSight
critical9.8

CVE-2026-133467

CodeSafe is an open-source Python library for code encryption, decryption, and safe evaluation using Python's AST module.

Impact

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.

An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.

Affected products (Infinitode)

ProductAffected versions
CodeSafe
from 0.0.1, before 0.0.5

Weakness classification

References