exec() call detected
High
- Category
- Dangerous Code Execution
- Content
) namespace: Dict[str, Any] = {} exec(grading_code, namespace) grade_func = namespace.get("grade") if not callable(grade_func): return GradeResult(- Confidence
- 99% confidence
- Finding
- The code executes Python extracted from task metadata via exec() with no sandboxing, validation, or privilege restriction. If task definitions are attacker-controlled or even just untrusted benchmark content, this enables arbitrary code execution in the grader process, allowing file access, network activity, secret exfiltration, or system compromise.
