Codesafe
Monthly
Arbitrary Python code execution in CodeSafe 0.0.1 through 0.0.4 is reachable through safe_eval() when an attacker can control the expression being evaluated, because the AST-based guard only blocks direct calls to dangerous built-ins and misses indirect subscript lookups such as __builtins__['exec'](...). The bypass requires no authentication or user interaction (CVSS 3.1 AV:N/AC:L/PR:N/UI:N, 9.8) and yields code execution with the permissions of the host application, but it is only reachable where untrusted input is actually routed into safe_eval(); applications that evaluate only developer-authored expressions are not exposed. No confirmed public exploit code has been identified at time of analysis, and the vulnerability is not listed as actively exploited, though the fixed 0.0.5 release ships a regression suite (test_poc.py) that documents the bypass patterns.
Arbitrary Python code execution in CodeSafe 0.0.1 through 0.0.4 is reachable through safe_eval() when an attacker can control the expression being evaluated, because the AST-based guard only blocks direct calls to dangerous built-ins and misses indirect subscript lookups such as __builtins__['exec'](...). The bypass requires no authentication or user interaction (CVSS 3.1 AV:N/AC:L/PR:N/UI:N, 9.8) and yields code execution with the permissions of the host application, but it is only reachable where untrusted input is actually routed into safe_eval(); applications that evaluate only developer-authored expressions are not exposed. No confirmed public exploit code has been identified at time of analysis, and the vulnerability is not listed as actively exploited, though the fixed 0.0.5 release ships a regression suite (test_poc.py) that documents the bypass patterns.