CWE•Class•Draft•20 recent CVEs
CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')
Description
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
[object Object]
Common consequences
- Integrity,Confidentiality,Availability→Execute Unauthorized Code or CommandsIf a malicious user injects a character (such as a semi-colon) that delimits the end of one command and the beginning of another, it may be possible to then insert an entirely new and unrelated command that was not intended to be executed.
Potential mitigations
- Architecture and DesignIf at all possible, use library calls rather than external processes to recreate the desired functionality.
- ImplementationIf possible, ensure that all external commands called from the program are statically created.
- Implementation[object Object]
- OperationRun time: Run time policy enforcement may be used in an allowlist fashion to prevent use of any non-sanctioned commands.
- System ConfigurationAssign permissions that prevent the user from accessing/opening privileged files.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-115568.82026-06-08CVE-2026-114875.32026-06-08CVE-2026-114555.02026-06-07CVE-2026-114527.32026-06-07CVE-2026-114517.32026-06-07CVE-2026-114507.32026-06-07CVE-2026-114496.32026-06-07CVE-2026-114484.72026-06-07CVE-2026-114476.32026-06-07CVE-2026-114086.32026-06-06CVE-2026-114066.32026-06-06CVE-2026-113416.32026-06-05CVE-2026-113396.32026-06-05CVE-2026-108786.32026-06-05CVE-2026-454977.72026-06-04CVE-2026-428246.52026-06-04CVE-2026-108737.22026-06-04CVE-2026-108727.22026-06-04CVE-2026-108717.22026-06-04CVE-2026-108707.22026-06-04