subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
} try: proc = subprocess.run( [sys.executable, script_path], cwd=script_dir, capture_output=True,- Confidence
- 98% confidence
- Finding
- This code executes an arbitrary Python script path supplied on the command line using the current interpreter. In the context of an agent skill that processes user-provided CadQuery models, this is effectively arbitrary code execution with the privileges of the agent process, and the timeout does not prevent filesystem access, network access, or other side effects during execution.
