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.
History

Wed, 25 Nov 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Title CodeSafe: safe_eval Sandbox Escape via Indirect Subscript Call
Weaknesses CWE-693
CWE-95
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2026-11-25T19:21:24.817Z

Updated: 2026-11-25T19:21:24.817Z

Reserved: 2026-11-19T20:59:23.973Z

Link: CVE-2026-133467

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-25T20:18:34.460

Modified: 2026-11-25T20:18:34.460

Link: CVE-2026-133467

cve-icon Redhat

No data.