IT lexicon › Security › Command injection

Command injection

Security På svenska → Updated: 2026-05-23

Vulnerability where user input is executed as a command in an underlying shell or OS call.

Classic: PHP system("ping ".$ip). The user types 1.1.1.1; cat /etc/passwd. Defences: never build command strings from input, use parameterised APIs, validate strictly. OWASP A03:2021 Injection.

← Back to the lexicon