Paper/Archive/CVE-2026-133467

CVE-2026-133467

Infinitode CodeSafe — CodeSafe: safe_eval Sandbox Escape via Indirect Subscript Call

Description · from the CVE record

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

ProductAffectedFixed inSource
CodeSafe>= 0.0.1, < 0.0.5–CNA

Scores by source

GitHub_M (CNA)9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

refgithub.com/Infinitode/CodeSafe/security/advisories/GHSA-7gp8-3j6q-v4h8refgithub.com/Infinitode/CodeSafe/commit/27f19e220432c9d83f1c463f382d2807b31fe6fd#diff-5e1c6bb51538bc170a88f3fb84b50c7df79ad57a1780a2a5b67450503e96c173