{"id":"CVE-2026-133467","summary":"CodeSafe: safe_eval Sandbox Escape via Indirect Subscript Call","details":"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.","aliases":["GHSA-7gp8-3j6q-v4h8"],"modified":"2026-11-25T21:00:49.846229272Z","published":"2026-11-25T19:21:24.817Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-693","CWE-95"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133467.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133467.json"},{"type":"FIX","url":"https://github.com/Infinitode/CodeSafe/commit/27f19e220432c9d83f1c463f382d2807b31fe6fd#diff-5e1c6bb51538bc170a88f3fb84b50c7df79ad57a1780a2a5b67450503e96c173"},{"type":"ADVISORY","url":"https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-7gp8-3j6q-v4h8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133467"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/infinitode/codesafe","events":[{"introduced":"139e05252a2d0c8ba52d8ddeb2e7e735d1688e77"},{"fixed":"8a6d2ca49f359cdc641c2433e4a1dcc5dbe01585"},{"fixed":"27f19e220432c9d83f1c463f382d2807b31fe6fd"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0.0.1"},{"fixed":"0.0.5"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"27f19e220432c9d83f1c463f382d2807b31fe6fd"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["0.0.4","0.0.3","0.0.2","0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133467.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}