Skip to content
OpenAdvisories

Weakness (CWE)

CWE-77: Command Injection

Class Draft Improper Neutralization of Special Elements used in a Command

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.

More detail

Many protocols and products have their own custom command language. While OS or shell command strings are frequently discovered and targeted, developers may not realize that these other command languages might also be vulnerable to attacks.

How to prevent it (5 mitigations)
  1. Architecture and Design

    If at all possible, use library calls rather than external processes to recreate the desired functionality.

  2. Implementation

    If possible, ensure that all external commands called from the program are statically created.

  3. Implementation

    Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

    When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

    Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

  4. Operation

    Run time: Run time policy enforcement may be used in an allowlist fashion to prevent use of any non-sanctioned commands.

  5. System Configuration

    Assign permissions that prevent the user from accessing/opening privileged files.

Source: MITRE CWE-77

1,207 results · Clear filters · Feed

  • High 8.8
    CVE-2023-33538 Exploited Public exploit EPSS 42%

    TP-Link TL-WR940N V2/V4, TL-WR841N V8/V10, and TL-WR740N V1/V2 was discovered to contain a command injection vulnerabil…

    KEV Jun 16, 2025
  • High 8.8

    There is a command injection vulnerability in the Tenda G103 Gigabit GPON Terminal with firmware version V1.0.0.5. If a…

  • High 8.8

    Netgear D6220 with Firmware Version 1.0.0.80, D8500 with Firmware Version 1.0.3.60, R6700 with Firmware Version 1.0.2.2…

  • High 7.2

    Remote Code Execution via Command Injection

    Improper Input Validation vulnerability in ABB Ltd. ASPECT®-Enterprise on ASPECT®-Enterprise, Linux (2CQG103201S3021, 2CQG103202S3021, 2CQG103203S3021, 2CQG103204S3021 modules), ABB Ltd. NEXUS Series on NEXUS Series, Linux (2CQG100102R2021, 2CQG100104R2021, 2…

  • High 8.8

    EDIMAX BR-6288ACL v1.12 was discovered to contain an authenticated remote code execution (RCE) vulnerability via the pp…

  • High 7.5

    Versions of the package yhirose/cpp-httplib before 0.12.4 are vulnerable to CRLF Injection when untrusted user input is…

  • High 7.8

    A vulnerability was found in ImageMagick. This security flaw causes a shell command injection vulnerability via video:v…

  • High 7.8

    n158 vulnerable to Command Injection due to improper input sanitization in the 'module.exports' function

    All versions of the package n158 are vulnerable to Command Injection due to improper input sanitization in the 'module.exports' function. **Note:** To execute the code snippet and potentially exploit the vulnerability, the attacker needs to have the ability t…

  • High 8.4

    keep-module-latest vulnerable to Command Injection due to missing input sanitization

    All versions of the package keep-module-latest are vulnerable to Command Injection due to missing input sanitization or other checks and sandboxes being employed to the installModule function. **Note:** To execute the code snippet and potentially exploit the …

  • High 8.4

    bwm-ng vulnerable to command injection

    All versions of the package bwm-ng are vulnerable to Command Injection due to improper input sanitization in the 'check' function in the bwm-ng.js file. **Note:** To execute the code snippet and potentially exploit the vulnerability, the attacker needs to hav…

  • High 7.2

    A vulnerability in the Connect Mobility Router component of MiVoice Connect versions 9.6.2208.101 and earlier could all…

  • High 7.2

    There is a command injection vulnerability in the Linksys E2000 router with firmware version 1.0.06. If an attacker gai…

  • High 8.8

    Hanwha IP Camera ANE-L7012R 1.41.01 is vulnerable to Command Injection due to improper sanitization of special characte…

  • High 7.2

    There is a command injection vulnerability in the Linksys E2000 router with firmware version 1.0.06. If an attacker gai…

  • High 7.2

    MXsecurity Command Injection Vulnerability

    MXsecurity version 1.0 is vulnearble to command injection vulnerability. This vulnerability has been reported in the SSH CLI program, which can be exploited by attackers who have gained authorization privileges. The attackers can break out of the restricted s…

  • High 7.2
    CVE-2023-31742 Public exploit

    There is a command injection vulnerability in the Linksys WRT54GL router with firmware version 4.30.18.006. If an attac…

  • High 8.8

    LuaTeX before 1.17.0 allows execution of arbitrary shell commands when compiling a TeX file obtained from an untrusted …

  • High 8.8

    TP-Link TL-WPA4530 KIT V2 (EU)_170406 and V2 (EU)_161115 is vulnerable to Command Injection via _httpRpmPlcDeviceAdd.

  • High 8.8

    TP-Link TL-WPA4530 KIT V2 (EU)_170406 and V2 (EU)_161115 is vulnerable to Command Injection via _httpRpmPlcDeviceRemove.

  • High 7.8

    A flaw was found in the Emacs text editor. Processing a specially crafted org-mode code with the "org-babel-execute:lat…

  • High 8.8
    CVE-2023-32073 Public exploit

    AVideo command injection vulnerability

    WWBN AVideo is an open source video platform. In versions 12.4 and prior, a command injection vulnerability exists at `plugin/CloneSite/cloneClient.json.php` which allows Remote Code Execution if you CloneSite Plugin. This is a bypass to the fix for CVE-2023-…

  • High 7.2

    Tenda AC23 Service Port 7329 ate command injection

    A vulnerability was found in Tenda AC23 16.03.07.45_cn. It has been declared as critical. This vulnerability affects unknown code of the file /bin/ate of the component Service Port 7329. The manipulation of the argument v2 leads to command injection. The atta…

  • High 8.8

    Motorola CX2L Router 1.0.1 was discovered to contain a command injection vulnerability via the tomography_ping_number p…

  • High 8.8

    Motorola CX2L Router 1.0.1 was discovered to contain a command injection vulnerability via the system_time_timezone par…

  • High 8.8

    Motorola CX2L Router 1.0.1 was discovered to contain a command injection vulnerability via the staticroute_list paramet…

  • High 8.8

    Motorola CX2L Router 1.0.1 was discovered to contain a command injection vulnerability via the smartqos_priority_device…

  • High 7.2

    A vulnerability has been identified in SIMATIC Cloud Connect 7 CC712 (All versions >= V2.0 < V2.1), SIMATIC Cloud Conne…

  • High 7.5

    An issue was discovered on GL.iNet devices running firmware before 3.216. There is an arbitrary file write in which an …

  • High 7.2

    Authenticated Remote Command Execution in Aruba InstantOS or ArubaOS 10 Command Line Interface

    Multiple authenticated command injection vulnerabilities exist in the Aruba InstantOS and ArubaOS 10 command line interface. Successful exploitation of these vulnerabilities result in the ability to execute arbitrary commands as a privileged user on the under…

  • High 7.2

    Authenticated Remote Command Execution in Aruba InstantOS or ArubaOS 10 Command Line Interface

    Multiple authenticated command injection vulnerabilities exist in the Aruba InstantOS and ArubaOS 10 command line interface. Successful exploitation of these vulnerabilities result in the ability to execute arbitrary commands as a privileged user on the under…

  • High 7.2

    Authenticated Remote Command Execution in Aruba InstantOS or ArubaOS 10 Command Line Interface

    Multiple authenticated command injection vulnerabilities exist in the Aruba InstantOS and ArubaOS 10 command line interface. Successful exploitation of these vulnerabilities result in the ability to execute arbitrary commands as a privileged user on the under…

  • High 8.8

    Caton Prime Ping command injection

    A vulnerability was found in Caton Prime 2.1.2.51.e8d7225049(202303031001) and classified as critical. This issue affects some unknown processing of the file cgi-bin/tools_ping.cgi?action=Command of the component Ping Handler. The manipulation of the argument…

  • High 8.8
    CVE-2023-32007 EPSS 76%

    Apache Spark: Shell command injection via Spark UI

    ** UNSUPPORTED WHEN ASSIGNED ** The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable. With an authentication filter, this checks whether a user has access permissions to view or modify the application. If AC…

  • High 7.2

    Ubiquiti EdgeRouter X Web Management command injection

    A flaw has been found in Ubiquiti EdgeRouter X up to 2.0.9-hotfix.6. This affects an unknown function of the component Web Management Interface. This manipulation of the argument suffix-rate-up causes command injection. The attack may be initiated remotely. T…

  • High 7.2

    Ubiquiti EdgeRouter X Web Management command injection

    A vulnerability was detected in Ubiquiti EdgeRouter X up to 2.0.9-hotfix.6. The impacted element is an unknown function of the component Web Management Interface. The manipulation of the argument Name results in command injection. The attack can be launched r…

  • High 7.2

    Ubiquiti EdgeRouter X Web Management command injection

    A security vulnerability has been detected in Ubiquiti EdgeRouter X up to 2.0.9-hotfix.6. The affected element is an unknown function of the component Web Management Interface. The manipulation of the argument dpi leads to command injection. The attack can be…

  • High 7.2
    CVE-2023-2375 Public exploit

    Ubiquiti EdgeRouter X Web Management command injection

    A weakness has been identified in Ubiquiti EdgeRouter X up to 2.0.9-hotfix.6. Impacted is an unknown function of the component Web Management Interface. Executing a manipulation of the argument src can lead to command injection. It is possible to launch the a…

  • High 7.2

    Ubiquiti EdgeRouter X Web Management command injection

    A security flaw has been discovered in Ubiquiti EdgeRouter X up to 2.0.9-hotfix.6. This issue affects some unknown processing of the component Web Management Interface. Performing a manipulation of the argument ecn-down results in command injection. It is pos…

  • High 7.2

    Ubiquiti EdgeRouter X Web Management command injection

    A vulnerability was identified in Ubiquiti EdgeRouter X up to 2.0.9-hotfix.6. This vulnerability affects unknown code of the component Web Management Interface. Such manipulation of the argument ecn-up leads to command injection. The attack may be performed f…

  • High 7.2

    IBM Cloud Pak for Data file upload

    IBM Cloud Pak for Data 4.5 and 4.6 could allow a privileged user to upload malicious files of dangerous types that can be automatically processed within the product's environment. IBM X-Force ID: 232034.