Tuesday 01 December 2026 20:23:01 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

Command Injection

A flaw where untrusted input is turned into operating-system commands.

Command injection is a vulnerability where software takes untrusted input and passes it to the operating system as part of a shell command. If the input is not strictly validated or escaped, an attacker can append extra commands, change command arguments, or redirect execution to malicious actions. This is especially dangerous in web interfaces, network appliances, and management tools that build system commands from form fields, headers, filenames, or device settings.

In cyber security, command injection matters because it can turn a simple input bug into full device or server compromise. Successful exploitation may allow file changes, credential theft, lateral movement, or remote code execution. Defenders reduce the risk by avoiding shell calls where possible, using safe APIs, enforcing allow-lists, escaping metacharacters, and running services with minimal privileges. Regular code review and testing for command construction bugs are important on edge devices, where one exposed interface can protect an entire network.

← WIKICROOK index