Vulnerability · CWE-78
OS Command Injectionalso known as Shell Injection
Command injection occurs when untrusted input reaches an OS shell, letting an attacker run arbitrary commands on the host.
Impact
Why it matters
Remote code execution on the server — full system compromise.
Detection
How vulnscanners finds it
vulnscanners runs Nuclei templates and OWASP ZAP active scans against authorized targets, and reports OS Command Injection findings with severity, the affected endpoint/parameter, and the evidence needed to confirm and fix them.
Remediation
How to fix it
- 01Avoid shelling out; use safe APIs.
- 02If unavoidable, use argument arrays and strict allow-lists.
- 03Run with least privilege and sandbox command execution.
References
FAQ
What is OS Command Injection?
Command injection occurs when untrusted input reaches an OS shell, letting an attacker run arbitrary commands on the host.
How does vulnscanners detect OS Command Injection?
vulnscanners runs Nuclei templates and OWASP ZAP active scans against authorized targets, and reports OS Command Injection findings with severity, the affected endpoint/parameter, and the evidence needed to confirm and fix them.
How do I fix OS Command Injection?
Avoid shelling out; use safe APIs. If unavoidable, use argument arrays and strict allow-lists. Run with least privilege and sandbox command execution.
How serious is OS Command Injection?
Remote code execution on the server — full system compromise.
Related
Scan your target for real.
Point vulnscanners at an authorized domain or IP range and get a severity-ranked report of what's actually exploitable — including OS Command Injection. Credits never expire.