CodeSafe is an open-source Python library for code encryption, decryption, and safe evaluation using Python's AST module.
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.
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- Infinitode
- Product
- CodeSafe
- CVSS v3.1
- 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Fix
- available
- Weakness
- CWE-95, CWE-693
- Exposure class
- Developer platform
- NVD status
- Received
Why it ranks 43 (Notable)
- CVSS v3.1 9.8 critical
- Product class: developer platform
- Fix available
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.