subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if os.path.exists(dep_script): import subprocess try: proc = subprocess.run( ['python3', dep_script, plan_path], capture_output=True, text=True,- Confidence
- 84% confidence
- Finding
- The script executes a local helper script (`check_deps.py`) using `python3` based only on file existence, without any integrity or trust check on that file. In an untrusted or writable workspace/package context, an attacker who can replace or modify `check_deps.py` can achieve arbitrary code execution when `check_progress.py` runs.
