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,084 results · Clear filters · Feed

  • Medium 5.3

    Vulnerability in the Oracle Outside In Technology product of Oracle Fusion Middleware (component: Outside In Core). Sup…

  • Medium 4.1

    An issue discovered in Alldata v0.4.6 allows attacker to run arbitrary commands via the processId parameter.

  • Medium 6.3

    Tenda FH1205 WriteFacMac formWriteFacMac command injection

    A vulnerability has been found in Tenda FH1205 2.0.0.7(775) and classified as critical. Affected by this vulnerability is the function formWriteFacMac of the file /goform/WriteFacMac. The manipulation of the argument mac leads to command injection. The attack…

  • Medium 6.3

    Tenda FH1203 WriteFacMac formWriteFacMac command injection

    A vulnerability has been found in Tenda FH1203 2.0.1.6 and classified as critical. This vulnerability affects the function formWriteFacMac of the file /goform/WriteFacMac. The manipulation of the argument mac leads to command injection. The attack can be init…

  • Medium 5.5

    Tenda FH1202 WriteFacMac formWriteFacMac command injection

    A vulnerability has been found in Tenda FH1202 1.2.0.14(408) and classified as critical. Affected by this vulnerability is the function formWriteFacMac of the file /goform/WriteFacMac. The manipulation of the argument mac leads to command injection. The explo…

  • Medium 6.3

    1Panel swap baseApi.UpdateDeviceSwap command injection

    A vulnerability, which was classified as critical, has been found in 1Panel up to 1.10.1-lts. Affected by this issue is the function baseApi.UpdateDeviceSwap of the file /api/v1/toolbox/device/update/swap. The manipulation of the argument Path with the input …

  • Medium 6.5
    CVE-2024-25082 Public exploit

    Splinefont in FontForge through 20230101 allows command injection via crafted archives or compressed files.

  • Medium 4.2
    CVE-2024-25081 Public exploit

    Splinefont in FontForge through 20230101 allows command injection via crafted filenames.

  • Medium 6.3
    CVE-2024-1781 Public exploit EPSS 15%

    Totolink X6000R AX3000 shttpd cstecgi.cgi setWizardCfg command injection

    A vulnerability was found in Totolink X6000R AX3000 9.4.0cu.852_20230719. It has been rated as critical. This issue affects the function setWizardCfg of the file /cgi-bin/cstecgi.cgi of the component shttpd. The manipulation leads to command injection. The ex…

  • Medium 5.8
    CVE-2023-47218 Public exploit Scanner template EPSS 90%

    QTS, QuTS hero, QuTScloud

    An OS command injection vulnerability has been reported to affect several QNAP operating system versions. If exploited, the vulnerability could allow users to execute commands via a network. We have already fixed the vulnerability in the following versions: Q…

  • Medium 6.9

    Emerson Rosemount GC370XA, GC700XA, GC1500XA Command Injection

    In Emerson Rosemount GC370XA, GC700XA, and GC1500XA products, an authenticated user with network access could run arbitrary commands from a remote computer.

  • Medium 5.5

    QTS, QuTS hero, QuTScloud

    An OS command injection vulnerability has been reported to affect several QNAP operating system versions. If exploited, the vulnerability could allow authenticated administrators to execute commands via a network. We have already fixed the vulnerability in th…

  • Medium 5.5

    QTS, QuTS hero, QuTScloud

    An OS command injection vulnerability has been reported to affect several QNAP operating system versions. If exploited, the vulnerability could allow authenticated administrators to execute commands via a network. We have already fixed the vulnerability in th…

  • Medium 5.5

    QTS, QuTS hero, QuTScloud

    An OS command injection vulnerability has been reported to affect several QNAP operating system versions. If exploited, the vulnerability could allow authenticated administrators to execute commands via a network. We have already fixed the vulnerability in th…

  • Medium 6.8

    An issue in TRENDnet TEW-822DRE v.1.03B02 allows a local attacker to execute arbitrary code via the parameters ipv4_pin…

  • Medium 6.3

    Totolink X2000R formMapDelDevice command injection

    A vulnerability classified as critical was found in Totolink X2000R 1.0.0-B20221212.1452. Affected by this vulnerability is the function formMapDelDevice of the file /boafrm/formMapDelDevice. The manipulation of the argument macstr leads to command injection.…

  • Medium 6.3

    Totolink LR1200GB cstecgi.cgi UploadFirmwareFile command injection

    A vulnerability was found in Totolink LR1200GB 9.1.0u.6619_B20230130. It has been rated as critical. This issue affects the function UploadFirmwareFile of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument FileName leads to command injection. The…

  • Medium 6.4

    Command Injection vulnerability in SAP Solution Manager

    SAP Solution Manager - version 720, allows an authorized attacker to execute certain deprecated function modules which can read or modify data of same or other component without user interaction over the network.

  • Medium 6.0

    A vulnerability in a specific Cisco ISE CLI command could allow an authenticated, local attacker to perform command inj…

  • Medium 5.5

    Mercurial configuration injectable in repo revision when installing via pip

    When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie "--config"). Controlling the Mercurial co…

  • Medium 6.8
    CVE-2023-43477 EPSS 18%

    Post-Auth Command Injection in Telstra Smart Modem Gen 2 (Arcadyan LH1000)

    The ping_from parameter of ping_tracerte.cgi in the web UI of Telstra Smart Modem Gen 2 (Arcadyan LH1000), firmware versions < 0.18.15r, was not properly sanitized before being used in a system call, which could allow an authenticated attacker to achieve comm…

  • Medium 6.5

    An improper neutralization of special elements used in an OS command vulnerability [CWE-78] in the management interface…

  • Medium 6.8

    OS Command Injection Vulnerability in a Mobile Internet Product of ZTE

    There is a command injection vulnerability in a mobile internet product of ZTE. Due to insufficient validation of SET_DEVICE_LED interface parameter, an authenticated attacker could use the vulnerability to execute arbitrary commands.

  • Medium 6.3

    Byzoro Smart S85F Management Platform decodmail.php command injection

    A vulnerability was found in Byzoro Smart S85F Management Platform up to 20230807. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file /log/decodmail.php. The manipulation of the argument file leads to comm…

  • Medium 6.8

    ScanCode.io command injection in docker image fetch process

    ScanCode.io is a server to script and automate software composition analysis with ScanPipe pipelines. Prior to version 32.5.1, the software has a possible command injection vulnerability in the docker fetch process as it allows to append malicious commands in…

  • Medium 5.8

    matrix-appservice-irc IRC command injection via admin commands containing newlines

    matrix-appservice-irc is a Node.js IRC bridge for Matrix. Prior to version 1.0.1, it is possible to craft a command with newlines which would not be properly parsed. This would mean you could pass a string of commands as a channel name, which would then be ru…

  • Medium 6.3
    CVE-2023-4120 EPSS 62%

    Byzoro Smart S85F Management Platform importhtml.php command injection

    A vulnerability was found in Byzoro Smart S85F Management Platform up to 20230722 and classified as critical. This issue affects some unknown processing of the file importhtml.php. The manipulation of the argument sql leads to command injection. The attack ma…

  • Medium 6.3

    1Panel vulnerable to command injection when adding container repositories

    1Panel is an open source Linux server operation and maintenance management panel. Prior to version 1.3.6, an authenticated attacker can craft a malicious payload to achieve command injection when adding container repositories. The vulnerability has been fixed…

  • Medium 6.3

    1Panel vulnerable to ommand injection when entering the container terminal

    1Panel is an open source Linux server operation and maintenance management panel. Prior to version 1.3.6, an authenticated attacker can craft a malicious payloads to achieve command injection when entering the container terminal. The vulnerability has been fi…

  • Medium 6.9

    Physical access to the WDM enables use of USB device to gain access to the WDM

    An attacker having physical access to WDM can plug USB device to gain access and execute unwanted commands. A malicious user could enter a system command along with a backup configuration, which could result in the execution of unwanted commands. This issue a…

  • Medium 5.5

    An issue discovered in Action Launcher for Android v50.5 allows an attacker to cause a denial of service via arbitary d…

  • Medium 5.9

    An issue was discovered in Citadel through webcit-926. Meddler-in-the-middle attackers can pipeline commands after POP3…

  • Medium 6.3

    Caton Live Mini_HTTPD ping.cgi command injection

    A vulnerability was found in Caton Live up to 2023-04-26 and classified as critical. This issue affects some unknown processing of the file /cgi-bin/ping.cgi of the component Mini_HTTPD. The manipulation of the argument address with the input ;id;uname${IFS}-…

  • Medium 6.3

    Weaver E-Office File Upload utility_all.php command injection

    A vulnerability was found in Weaver E-Office 9.5 and classified as critical. Affected by this issue is some unknown functionality of the file /webroot/inc/utility_all.php of the component File Upload Handler. The manipulation leads to command injection. The a…

  • Medium 4.9

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

  • Medium 5.6

    Improper input validation in github.com/gin-gonic/gin

    Versions of the package github.com/gin-gonic/gin before 1.9.0 are vulnerable to Improper Input Validation by allowing an attacker to use a specially crafted request via the X-Forwarded-Prefix header, potentially leading to cache poisoning. **Note:** Although …

  • Medium 6.7
    CVE-2022-37704 Public exploit

    Amanda 3.5.1 allows privilege escalation from the regular user backup to root. The SUID binary located at /lib/amanda/r…

  • Medium 6.5

    An issue was discovered in GitLab Community and Enterprise Edition before 11.11.8, 12 before 12.0.6, and 12.1 before 12…

  • Medium 6.5
    CVE-2023-20118 Exploited EPSS 54%

    A vulnerability in the web-based management interface of Cisco Small Business Routers RV016, RV042, RV042G, RV082, RV32…

    KEV Mar 3, 2025
  • Medium 6.1

    Command Injection in microweber/microweber

    Command Injection in GitHub repository microweber/microweber prior to 1.3.3.