eval() call detected
High
- Category
- Dangerous Code Execution
- Content
raise NameError(arg) else: code = forward_ref.__forward_code__ value = eval(code, globals, locals) forward_ref.__forward_evaluated__ = True forward_ref.__forward_value__ = value return value- Confidence
- 89% confidence
- Finding
- This code evaluates forward-reference expressions with Python eval(), which can execute arbitrary code if annotations or forward reference strings are attacker-controlled. In many applications annotations are trusted developer input, but in systems that ingest untrusted Python objects, plugins, or generated code, this becomes a code-execution sink.
