CAPEC-15
Command Delimiters
An attack of this type exploits a programs' vulnerabilities that allows an attacker's commands to be concatenated onto a legitimate command with the intent of targeting other resources such as the file system or database. The system that uses a filter or denylist input validation, as opposed to allowlist validation is vulnerable to an attacker who predicts delimiters (or combinations of delimiters) not present in the filter or denylist. As with other injection attacks, the attacker uses the command delimiter payload as an entry point to tunnel through the application and activate additional attacks through SQL queries, shell commands, network scanning, and so on.
On this page
Ask an AI about this attack pattern
Show the prompt
Explain the attack pattern CAPEC-15: Command Delimiters: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/15.html and https://cve.bz/cve/capec/15?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.
How the attack unfolds
Explore
The attacker looks for a way in.
[Assess Target Runtime Environment] In situations where the runtime environment is not implicitly known, the attacker makes connections to the target system and tries to determine the system's runtime environment. Knowing the environment is vital to choosing the correct delimiters.
4 techniques
- Port mapping using network connection-based software (e.g., nmap, nessus, etc.)
- Port mapping by exploring the operating system (netstat, sockstat, etc.)
- TCP/IP Fingerprinting
- Induce errors to find informative error messages
[Survey the Application] The attacker surveys the target application, possibly as a valid and authenticated user
2 techniques
- Spidering web sites for all available links
- Inventory all application inputs
Experiment
They probe what they found.
[Attempt delimiters in inputs] The attacker systematically attempts variations of delimiters on known inputs, observing the application's response each time.
3 techniques
- Inject command delimiters using network packet injection tools (netcat, nemesis, etc.)
- Inject command delimiters using web test frameworks (proxies, TamperData, custom programs, etc.)
- Enter command delimiters directly in input fields.
Exploit
They carry out the attack.
[Use malicious command delimiters] The attacker uses combinations of payload and carefully placed command delimiters to attack the software.
Prerequisites
Software's input validation or filtering must not detect and block presence of additional malicious command.
Skills required
- Medium skill
The attacker has to identify injection vector, identify the specific commands, and optionally collect the output, i.e. from an interactive session.
Resources required
Ability to communicate synchronously or asynchronously with server. Optionally, ability to capture output directly through synchronous communication or other method such as FTP.
Consequences
| Impact | Affects | Note |
|---|---|---|
| Execute Unauthorized Commands | Confidentiality, Integrity, Availability | Run Arbitrary Code |
| Read Data | Confidentiality |
Mitigations
Design: Perform allowlist validation against a positive specification for command length, type, and parameters.
Design: Limit program privileges, so if commands circumvent program input validation or filter routines then commands do not running under a privileged account
Implementation: Perform input validation for all remote content.
Implementation: Use type conversions such as JDBC prepared statements.
Weaknesses it exploits
- CWE-77 Improper Neutralization of Special Elements used in a Command
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
- CWE-93 Improper Neutralization of CRLF Sequences
- CWE-138 Improper Neutralization of Special Elements
- CWE-140 Improper Neutralization of Delimiters
- CWE-146 Improper Neutralization of Expression/Command Delimiters
- CWE-154 Improper Neutralization of Variable Name Delimiters
- CWE-157 Failure to Sanitize Paired Delimiters
- CWE-184 Incomplete List of Disallowed Inputs
- CWE-185 Incorrect Regular Expression
- CWE-697 Incorrect Comparison
Recent CVEs with these weaknesses
- 8.5CVE-2026-140041
A flaw has been found in WAVLINK WL-WN530BE1-A M30BE1_V251117. The impacted element is the function FUN_0001f94c of the file /protocol.csp of the component ioos. Executing a manipulation of the argument mac can lead to os command injection…
- 8.6CVE-2026-140040
A vulnerability was detected in WAVLINK WL-WN530BE1-A M30BE1_V251117. The affected element is the function port_forward of the file /protocol.csp of the component ioos. Performing a manipulation of the argument Name results in os command i…
- 6.3CVE-2026-121479
A flaw was found in sequoia-sq. This vulnerability can lead to arbitrary code execution when the tool displays suggested command hints derived from untrusted inputs, such as user identities. Because command arguments are not properly quote…
- 8.8CVE-2026-75938
A flaw was found in openshift/cluster-api-provider-ibmcloud. When the IBMPowerVSCluster.Spec.Ignition is configured, the controller embeds an IBM Identity and Access Management (IAM) bearer token directly into the PowerVS instance user-dat…
- 9.2CVE-2026-137199
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account…
- 8.1CVE-2026-137197
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a pla…
- 7.0CVE-2026-137190
Vite+ is a unified toolchain and entry point for web development. From 0.3.3 until 1.5.1, the global vp command line interface's vp env use path can place an unvalidated package-manager version from a repository-selected registry into gene…
- 8.7CVE-2026-137186
pluggedin-app is a self-hostable web interface for managing Model Context Protocol servers. Prior to 4.0.0, an authenticated user adding a STDIO MCP server can supply crafted args that PackageManager.transformCommand() extracts as a packag…
The newest records naming one of them. Each weakness's page lists them all.
Related attack patterns
Examples
By appending special characters, such as a semicolon or other commands that are executed by the target proces…
By appending special characters, such as a semicolon or other commands that are executed by the target process, the attacker is able to execute a wide variety of malicious commands in the target process space, utilizing the target's inherited permissions, against any resource the host has access to. The possibilities are vast including injection attacks against RDBMS (SQL Injection), directory servers (LDAP Injection), XML documents (XPath and XQuery Injection), and command line shells. In many injection attacks, the results are converted back to strings and displayed to the client process such as a web browser without tripping any security alarms, so the network firewall does not log any out of the ordinary behavior.
LDAP servers house critical identity assets such as user, profile, password, and group information that is used to authenticate and authorize users. An attacker that can query the directory at will and execute custom commands against the directory server is literally working with the keys to the kingdom in many enterprises. When user, organizational units, and other directory objects are queried by building the query string directly from user input with no validation, or other conversion, then the attacker has the ability to use any LDAP commands to query, filter, list, and crawl against the LDAP server directly in the same manner as SQL injection gives the ability to the attacker to run SQL commands on the database.
MITRE's words, unchanged: CAPEC-15 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.