subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print(" venv creation failed - is python3-venv installed?") return 1 print(f"Installing {' '.join(EXTRAS)}") r = subprocess.run([str(VENV / "bin" / "pip"), "install", "-q", *EXTRAS]) if r.returncode: print(" install failed - see pip output above") return 1- Confidence
- 90% confidence
- Finding
- This executes a pip binary from a path derived from the environment-controlled VENV location. An attacker who can influence XDG_CACHE_HOME or pre-place a malicious executable at that path could cause arbitrary code execution when --install is run, and even without path hijacking this skill performs package installation and executes third-party installer code beyond its attestation purpose.
