CVE-2026-133467
JSON

9.8critical

CodeSafe: safe_eval Sandbox Escape via Indirect Subscript Call

Severity
9.8critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.42% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
Infinitode CodeSafe>= 0.0.1, < 0.0.5CVE List

Classification

CWE-95CWE-693

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-133467 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-133467 changed 2026-11-30Public domain