All rules →
Rules / Python
SHIELD-PY-005

Shell injection via os.system

criticalPythonCWE-78CVSS 9.8

What it detects

os.system() with user input allows arbitrary command execution.

How to fix

Use subprocess.run() with a list of arguments and shell=False instead of os.system().

Scan your repo freeFull documentation
Back to all rules
SHIELD-PY-005: Shell injection via os.system — Zennoxa Shield