subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
capture_output=True, text=True ) elif cmd in ["eval", "improve"]: result = subprocess.run( ["python3", str(SCRIPT_DIR / "skill_evaluator.py")] + [f"--{cmd}", args[0]], capture_output=True, text=True )- Confidence
- 67% confidence
- Finding
- This code dereferences args[0] without checking that an argument was provided, so invoking eval or improve without parameters will raise an exception and terminate the program. While not code execution, it creates an easy denial-of-service condition for the CLI entrypoint and reflects missing input validation in a security-sensitive orchestration script.
