Tainted flow: 'cmd' from os.environ.get (line 69, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
start_time = time.time() try: result = subprocess.run( cmd, capture_output=True, text=True, timeout=timeout, env=SANDBOX_ENV )- Confidence
- 80% confidence
- Finding
- The command path comes from DOCKER_BIN, which is read from the process environment and then executed. Even though shell injection is avoided, an attacker who can influence the environment can redirect execution to a malicious binary or wrapper, causing arbitrary code execution in the host context running the orchestrator.
