ClassDraftTop 25 #13

CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')

Category: 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.

Common consequences· 1

  • Integrity / Confidentiality / Availability — Execute Unauthorized Code or Commands
    If 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. This gives an attacker a privilege or capability that they would not otherwise have.

Potential mitigations· 5

  • [Architecture and Design]If at all possible, use library calls rather than external processes to recreate the desired functionality.
  • [Implementation]If possible, ensure that all external commands called from the program are statically created.
  • [Implementation]
  • [Operation]Run time: Run time policy enforcement may be used in an allowlist fashion to prevent use of any non-sanctioned commands.
  • [System Configuration]Assign permissions that prevent the user from accessing/opening privileged files.

Related CAPEC attack patterns· 8

CAPEC-136CAPEC-15CAPEC-183CAPEC-248CAPEC-40CAPEC-43CAPEC-75CAPEC-76

References

  1. https://cwe.mitre.org/data/definitions/77.html

Exploits (incoming)7

TypeTargetConfidenceTier
AttackPatternCommand Delimiterscapec-15100%live
AttackPatternManipulating Writeable Terminal Devicescapec-40100%live
AttackPatternManipulating Writeable Configuration Filescapec-75100%live
AttackPatternExploiting Multiple Input Interpretation Layerscapec-43100%live
AttackPatternCommand Injectioncapec-248100%live
AttackPatternIMAP/SMTP Command Injectioncapec-183100%live
AttackPatternManipulating Web Input to File System Callscapec-76100%live

Compliance frameworks addressing this (incoming)1

TypeTargetConfidenceTier
ComplianceControldora-art24100%live

(incoming)142

TypeTargetConfidenceTier
VulnerabilityCVE-2025-0593cve-2025-05930%live
VulnerabilityCVE-2025-0798cve-2025-07980%live
VulnerabilityCVE-2025-10020cve-2025-100200%live
VulnerabilityFortra GoAnywhere MFT Deserialization of Untrusted Data Vulnerabilitycve-2025-100350%live
VulnerabilityCVE-2025-10123cve-2025-101230%live
VulnerabilityCVE-2025-10323cve-2025-103230%live
VulnerabilityCVE-2025-10324cve-2025-103240%live
VulnerabilityCVE-2025-10325cve-2025-103250%live
VulnerabilityCVE-2025-10326cve-2025-103260%live
VulnerabilityCVE-2025-10327cve-2025-103270%live
VulnerabilityCVE-2025-10328cve-2025-103280%live
VulnerabilityCVE-2025-10358cve-2025-103580%live
VulnerabilityCVE-2025-10359cve-2025-103590%live
VulnerabilityCVE-2025-10401cve-2025-104010%live
VulnerabilityCVE-2025-10442cve-2025-104420%live
VulnerabilityCVE-2025-10628cve-2025-106280%live
VulnerabilityCVE-2025-10629cve-2025-106290%live
VulnerabilityCVE-2025-10634cve-2025-106340%live
VulnerabilityCVE-2025-10689cve-2025-106890%live
VulnerabilityCVE-2025-10814cve-2025-108140%live
VulnerabilityCVE-2025-10958cve-2025-109580%live
VulnerabilityCVE-2025-10959cve-2025-109590%live
VulnerabilityCVE-2025-10960cve-2025-109600%live
VulnerabilityCVE-2025-10961cve-2025-109610%live
VulnerabilityCVE-2025-10962cve-2025-109620%live
VulnerabilityCVE-2025-10963cve-2025-109630%live
VulnerabilityCVE-2025-10964cve-2025-109640%live
VulnerabilityCVE-2025-11092cve-2025-110920%live
VulnerabilityCVE-2025-11095cve-2025-110950%live
VulnerabilityCVE-2025-11096cve-2025-110960%live

Showing top 30 of 142 by confidence. Click any target to see the full neighbourhood.

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CWE
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
CWE
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
CWE
Improper Control of Generation of Code ('Code Injection')
CWE
Improper Neutralization of Expression/Command Delimiters
CWE
Improper Neutralization of Internal Special Elements
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.