cve.bz

CAPEC-6

Argument Injection

High severityHigh likelihoodStandard pattern

An attacker changes the behavior or state of a targeted application through injecting data or command syntax through the targets use of non-validated and non-filtered arguments of exposed services or methods.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-6: Argument Injection: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/6.html and https://cve.bz/cve/capec/6?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

  1. Explore

    The attacker looks for a way in.

    1. [Discovery of potential injection vectors] Using an automated tool or manual discovery, the attacker identifies services or methods with arguments that could potentially be used as injection vectors (OS, API, SQL procedures, etc.).

      2 techniques
      • Manually cover the application and record the possible places where arguments could be passed into external systems.
      • Use a spider, for web applications, to create a list of URLs and associated inputs.
  2. Experiment

    They probe what they found.

    1. [1. Attempt variations on argument content] Possibly using an automated tool, the attacker will perform injection variations of the arguments.

      2 techniques
      • Use a very large list of probe strings in order to detect if there is a positive result, and, what type of system has been targeted (if obscure).
      • Use a proxy tool to record results, error messages and/or log if accessible.
  3. Exploit

    They carry out the attack.

    1. [Abuse of the application] The attacker injects specific syntax into a particular argument in order to generate a specific malicious effect in the targeted application.

      1 technique
      • Manually inject specific payload into targeted argument.

Prerequisites

  • Target software fails to strip all user-supplied input of any content that could cause the shell to perform unexpected actions.

  • Software must allow for unvalidated or unfiltered input to be executed on operating system shell, and, optionally, the system configuration must allow for output to be sent back to client.

Skills required

  • Medium skill

    The attacker has to identify injection vector, identify the operating system-specific commands, and optionally collect the output.

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

What a successful attack can lead to
ImpactAffectsNote
Gain PrivilegesConfidentiality, Access Control, Authorization
Modify DataIntegrity
Read DataConfidentiality

Mitigations

  • Design: Do not program input values directly on command shell, instead treat user input as guilty until proven innocent. Build a function that takes user input and converts it to applications specific types and values, stripping or filtering out all unauthorized commands and characters in the process.

  • Design: Limit program privileges, so if metacharacters or other methods circumvent program input validation routines and shell access is attained then it is not running under a privileged account. chroot jails create a sandbox for the application to execute in, making it more difficult for an attacker to elevate privilege even in the case that a compromise has occurred.

  • Implementation: Implement an audit log that is written to a separate host, in the event of a compromise the audit log may be able to provide evidence and details of the compromise.

Weaknesses it exploits

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command
  • CWE-146 Improper Neutralization of Expression/Command Delimiters
  • CWE-184 Incomplete List of Disallowed Inputs
  • CWE-185 Incorrect Regular Expression
  • CWE-697 Incorrect Comparison

Recent CVEs with these weaknesses

  1. 6.9CVE-2026-140128

    A flaw has been found in Baison E3 Omni-Channel Retail Platform up to 2.5.1. Affected is an unknown function of the component KHATTACH Controller. Executing a manipulation of the argument retObjs can lead to sql injection. It is possible t…

  2. 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…

  3. 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…

  4. 5.5CVE-2026-139983

    A vulnerability was identified in walinejs Waline up to 1.43.4. This issue affects some unknown processing. Such manipulation of the argument mail leads to sql injection. The attack can be executed remotely. The exploit is publicly availab…

  5. 5.5CVE-2026-139982

    A vulnerability was found in PerfreeBlog up to 4.0.11. This issue affects the function buildPage of the file MyBatisUtils.java. Performing a manipulation of the argument Field results in sql injection. Remote exploitation of the attack is …

  6. 2.1CVE-2026-139980

    A vulnerability was detected in PerfreeBlog up to 4.0.11. Affected by this issue is the function buildPage of the file MyBatisUtils.java. The manipulation of the argument Field results in sql injection. The attack can be launched remotely.…

  7. 7.7CVE-2026-105843

    A flaw was found in OpenShift Router. The regular expression used to validate the haproxy.router.openshift.io/hsts_header route annotation matches the whitespace character class, which includes newline characters, and the matched value is …

  8. 2.1CVE-2026-139895

    A vulnerability was determined in itsourcecode Stock Management System 1.0. The impacted element is an unknown function of the file fetchOrderData.php. Executing a manipulation of the argument orderId can lead to sql injection. It is possi…

The newest records naming one of them. Each weakness's page lists them all.

Part of

Examples

A recent example instance of argument injection occurred against Java Web Start technology, which eases the c…

A recent example instance of argument injection occurred against Java Web Start technology, which eases the client side deployment for Java programs. The JNLP files that are used to describe the properties for the program. The client side Java runtime used the arguments in the property setting to define execution parameters, but if the attacker appends commands to an otherwise legitimate property file, then these commands are sent to the client command shell. [REF-482]

MITRE's words, unchanged: CAPEC-6 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.