Software Securityhome
Fix a findingSearch
Glossary

Command injection

OS command injection (CWE-78). Untrusted input becomes part of an operating-system command and lets an attacker run commands. Pass arguments as a list without a shell, and validate any value that the program could read as an option.

Also called
OS command injection · shell injection
Defined in
MITRE CWE-78

Covered in

All 7 pages that cover Command injection in the library

Practice: XSS lab: Render a model’s answer as text instead of active markup · Release evidence lab: Keep stale test evidence out of a release decision · Actions injection lab: Flag GitHub Actions expression injection · SQL injection lab: Separate SQL structure from data with sqlite3

Find your next answer

Type to search. Search runs in your browser.

Searches run in your browser, but the host can infer them from the index files they load. The address shows your search so you can bookmark or share it.