Read the docs

Sandbox escape in CodeSafe safe_eval via indirect subscript calls

Priority MEDIUM 49CWE-693Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass, Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-693 and CWE-95.

Summary

Infinitode CodeSafe from version 0.0.1 before 0.0.5 has a flaw where 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.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00418 27th percentileScored 2026-11-30
Fix Fixed CodeSafe (Infinitode): 0.0.5

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
InfinitodeCodeSafe0.0.1 to before 0.0.50.0.5Patch availableCNA
  • CodeSafe VendorInfinitode Affected 0.0.1 to before 0.0.5 Fixed in 0.0.5 Patch available CNA

Remediation

Upgrade CodeSafe to version 0.0.5, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA CodeSafe (Infinitode) Fixed in 0.0.5

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-133467
  2. 2026-11-30 CISA SSVC decision points changed

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences