← All vulnerabilities

Command Injection

Critical · Injection

OWASP Top 10:2025 (current)

Not directly mapped to a Top 10:2025 category — see CWE / CVE below.

CWE

CWE-78

CVE / class examples

  • Search NVD/CVE for product-specific instances of this CWE

All refs

CWE-78

Definition

Input is executed by the OS shell.

Root cause

Passing input to shell commands.

Affected components

  • Components in the “Injection” class
  • Application / API handlers
  • Supporting libraries

Impact

Full server compromise.

Severity

Critical

Safe lab reproduction

DVWA Command Injection module

Detection methodology

Process monitoring, EDR, unusual child processes of web servers.

Evidence examples

  • Lab reproduction notes: DVWA Command Injection module
  • Request/response excerpts (redacted)
  • Detection signal: Process monitoring, EDR, unusual child processes of web servers

Remediation

Avoid shell calls; use safe APIs with argument arrays.

Secure coding examples

Use subprocess with list args and shell=False.

Related CYNARKS lessons & labs

Tools: burp

Practise related skills in Labs or deepen on Academy library.