All rules →
Rules / Python
SHIELD-PY-006

Shell injection via subprocess with shell=True

highPythonCWE-78CVSS 8.8

What it detects

Using shell=True with subprocess passes the command to the shell, allowing injection.

How to fix

Use shell=False (default) and pass arguments as a list to avoid shell injection.

Scan your repo freeFull documentation
Back to all rules
SHIELD-PY-006: Shell injection via subprocess with shell=True — Zennoxa Shield