PT-2026-159394
CVE-2026-133467
·
Published
2026-11-25
·
Updated
2026-11-25
Description by
CVSS 3.1
9.8
CriticalMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions
CodeSafe versions 0.0.1 through 0.0.4
Description
CodeSafe is an open-source Python library used for code encryption, decryption, and safe evaluation via the AST module. The
safe eval() function contains a flaw where AST validation only blocks direct calls to dangerous built-ins, allowing them to be bypassed using indirect subscript calls such as builtins'exec'. An attacker who can control an expression passed to safe eval() can achieve remote code execution, running arbitrary Python code with the permissions of the host application, which may grant access to files and sockets.Recommendations
Update to version 0.0.5.
As a temporary workaround, restrict the use of the
safe eval() function until the update is applied. Found an issue in the description? Have something to add? Feel free to write us 👾