Tainted flow: 'clean_env' from os.environ.get (line 108, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
clean_env["PATH"] = f"{venv}/bin:{clean_env['PATH']}" try: proc = subprocess.run( [sys.executable, str(script_path)], capture_output=True, text=True, timeout=timeout, cwd=tmpdir, env=clean_env,- Confidence
- 88% confidence
- Finding
- proc = subprocess.run( [sys.executable, str(script_path)], capture_output=True, text=True, timeout=timeout, cwd=tmpdir, env=clean_env,
