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

228 results · Clear filters · Feed

  • High 7.2
    CVE-2023-29084 Public exploit EPSS 98%

    Zoho ManageEngine ADManager Plus before 7181 allows for authenticated users to exploit command injection via Proxy sett…

  • Critical 9.8
    CVE-2023-1671 Exploited Public exploit EPSS 100%

    A pre-auth command injection vulnerability in the warn-proceed handler of Sophos Web Appliance older than version 4.3.1…

    KEV Nov 16, 2023
  • Critical 9.8
    CVE-2023-26866 Public exploit

    GreenPacket OH736's WR-1200 Indoor Unit, OT-235 with firmware versions M-IDU-1.6.0.3_V1.1 and MH-46360-2.0.3-R5-GP resp…

  • High 8.8
    CVE-2023-1389 Exploited Public exploit EPSS 100%

    TP-Link Archer AX21 (AX1800) firmware versions before 1.1.4 Build 20230219 contained a command injection vulnerability …

    KEV May 1, 2023
  • High 8.8
    CVE-2022-45600 Public exploit

    Aztech WMB250AC Mesh Routers Firmware Version 016 2020 devices improperly manage sessions, which allows remote attacker…

  • High 8.8
    CVE-2022-45701 Public exploit EPSS 43%

    Arris TG2482A firmware through 9.1.103GEM9 allow Remote Code Execution (RCE) via the ping utility feature.

  • Medium 6.0
    CVE-2023-20075 Public exploit

    Vulnerability in the CLI of Cisco Secure Email Gateway could allow an authenticated, remote attacker to execute arbitra…

  • High 7.2
    CVE-2023-0861 Public exploit EPSS 29%

    Authenticated Command Injection in NetModule NSRW

    NetModule NSRW web administration interface executes an OS command constructed with unsanitized user input. A successful exploit could allow an authenticated user to execute arbitrary commands with elevated privileges. This issue affects NSRW: from 4.3.0.0 be…

  • Medium 6.3
    CVE-2023-0830 Public exploit EPSS 21%

    EasyNAS backup.pl system os command injection

    A vulnerability classified as critical has been found in EasyNAS 1.1.0. Affected is the function system of the file /backup.pl. The manipulation leads to os command injection. It is possible to launch the attack remotely. The exploit has been disclosed to the…

  • Critical 9.8
    CVE-2022-40022 Public exploit EPSS 92%

    Microchip Technology (Microsemi) SyncServer S650 was discovered to contain a command injection vulnerability.

  • Critical 9.8
    CVE-2023-23333 Public exploit EPSS 99%

    There is a command injection vulnerability in SolarView Compact through 6.00, attackers can execute commands by bypassi…

  • Critical 9.8
    CVE-2023-22884 Public exploit EPSS 12%

    Apache Airflow, Apache Airflow MySQL Provider: Arbitrary file read via MySQL provider in Apache Airflow

    Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in Apache Software Foundation Apache Airflow, Apache Software Foundation Apache Airflow MySQL Provider.This issue affects Apache Airflow: before 2.5.1; Apache Ai…

  • High 7.2
    CVE-2023-0315 Public exploit EPSS 98%

    Command Injection in froxlor/froxlor

    Command Injection in GitHub repository froxlor/froxlor prior to 2.0.8.

  • High 8.1
    CVE-2023-22496 Public exploit EPSS 36%

    Netdata vulnerable to command injection

    Netdata is an open source option for real-time infrastructure monitoring and troubleshooting. An attacker with the ability to establish a streaming connection can execute arbitrary commands on the targeted Netdata agent. When an alert is triggered, the functi…

  • High 7.2
    CVE-2022-4616 Public exploit

    The webserver in Delta DX-3021 versions prior to 1.24 is vulnerable to command injection through the network diagnosis …

  • Critical 9.8
    CVE-2022-39073 Public exploit

    There is a command injection vulnerability in ZTE MF286R, Due to insufficient validation of the input parameters, an at…

  • High 8.7
    CVE-2022-41800 Public exploit EPSS 77%

    Appliance mode iControl REST vulnerability

    In all versions of BIG-IP, when running in Appliance mode, an authenticated user assigned the Administrator role may be able to bypass Appliance mode restrictions, utilizing an undisclosed iControl REST endpoint. A successful exploit can allow the attacker to…

  • Critical 9.8
    CVE-2020-23583 Public exploit

    OPTILINK OP-XT71000N V2.2 is vulnerable to Remote Code Execution. The issue occurs when the attacker sends an arbitrary…

  • Critical 9.8
    CVE-2020-23584 Public exploit EPSS 41%

    Unauthenticated remote code execution in OPTILINK OP-XT71000N, Hardware Version: V2.2 occurs when the attacker passes a…

  • Critical 9.8
    CVE-2022-43781 Public exploit EPSS 98%

    There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center. An attacker…

  • Critical 9.8
    CVE-2022-40881 Public exploit EPSS 31%

    SolarView Compact 6.00 was discovered to contain a command injection vulnerability via network_test.php

  • Critical 9.8
    CVE-2016-20017 Exploited Public exploit EPSS 66%

    D-Link DSL-2750B devices before 1.05 allow remote unauthenticated command injection via the login.cgi cli parameter, as…

    KEV Jan 8, 2024
  • High 7.3
    CVE-2022-25765 Public exploit EPSS 43%

    Command Injection

    The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.

  • High 8.8
    CVE-2022-36633 Public exploit EPSS 51%

    Improper token validation leading to code execution in Teleport

    Teleport 9.3.6 is vulnerable to Command injection leading to Remote Code Execution. An attacker can craft a malicious ssh agent installation link by URL encoding a bash escape with carriage return line feed. This url encoded payload can be used in place of a …

  • Critical 9.8
    CVE-2022-2143 Public exploit EPSS 63%

    Advantech iView

    The affected product is vulnerable to two instances of command injection, which may allow an attacker to remotely execute arbitrary code.

  • Critical 10.0
    CVE-2022-31161 Public exploit EPSS 29%

    Roxy-WI Vulnerable to Unauthenticated Remote Code Execution via ssl_cert Upload

    Roxy-WI is a Web interface for managing HAProxy, Nginx and Keepalived servers. Prior to version 6.1.1.0, the system command can be run remotely via the subprocess_execute function without processing the inputs received from the user in the /app/options.py fil…

  • High 7.8
    CVE-2015-20107 Public exploit

    In Python (aka CPython) up to 3.10.8, the mailcap module does not add escape characters into commands discovered in the…

  • Critical 9.8
    CVE-2022-26265 Public exploit EPSS 30%

    Remote Code Execution in Contao Managed Edition

    Contao Managed Edition v1.5.0 was discovered to contain a remote command execution (RCE) vulnerability via the component php_cli parameter.

  • Critical 9.8
    CVE-2021-4045 Public exploit EPSS 72%

    TP-LINK Tapo C200 remote code execution vulnerability

    TP-Link Tapo C200 IP camera, on its 1.1.15 firmware version and below, is affected by an unauthenticated RCE vulnerability, present in the uhttpd binary running by default as root. The exploitation of this vulnerability allows an attacker to take full control…

  • High 8.8
    CVE-2021-32849 Public exploit

    Arbitrary command execution in Gerapy

    Gerapy is a distributed crawler management framework. Prior to version 0.9.9, an authenticated user could execute arbitrary commands. This issue is fixed in version 0.9.9. There are no known workarounds.

  • High 8.0
    CVE-2022-21668 Public exploit

    Pipenv's requirements.txt parsing allows malicious index url in comments

    pipenv is a Python development workflow tool. Starting with version 2018.10.9 and prior to version 2022.1.8, a flaw in pipenv's parsing of requirements files allows an attacker to insert a specially crafted string inside a comment anywhere within a requiremen…

  • High 8.8
    CVE-2020-13664 Public exploit

    Drupal Core Arbitrary PHP code execution vulnerability

    Arbitrary PHP code execution vulnerability in Drupal Core under certain circumstances. An attacker could trick an administrator into visiting a malicious site that could result in creating a carefully named directory on the file system. With this directory in…

  • Critical 9.8
    CVE-2020-2509 Exploited Public exploit EPSS 34%

    Command Injection Vulnerability in QTS and QuTS hero

    A command injection vulnerability has been reported to affect QTS and QuTS hero. If exploited, this vulnerability allows attackers to execute arbitrary commands in a compromised application. We have already fixed this vulnerability in the following versions: …

    KEV Apr 11, 2022
  • High 7.8
    CVE-2020-28243 Public exploit

    SaltStack Salt command injection via a crafted process name

    An issue was discovered in SaltStack Salt before 3002.5. The minion's restartcheck is vulnerable to command injection via a crafted process name. This allows for a local privilege escalation by any user able to create a files on the minion in a non-blackliste…

  • High 7.2
    CVE-2021-23337 Public exploit EPSS 20%

    Command Injection

    Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.

  • High 7.0
    CVE-2020-7384 Public exploit EPSS 30%

    Client-Side Command Injection in Rapid7 Metasploit

    Rapid7's Metasploit msfvenom framework handles APK files in a way that allows for a malicious user to craft and publish a file that would execute arbitrary commands on a victim's machine.

  • Low 3.5
    CVE-2020-15228 Public exploit

    Environment Variable Injection in GitHub Actions

    In the `@actions/core` npm module before version 1.2.6,`addPath` and `exportVariable` functions communicate with the Actions Runner over stdout by generating a string in a specific format. Workflows that log untrusted data to stdout may invoke these commands,…

  • High 8.8
    CVE-2020-11978 Exploited Public exploit EPSS 99%

    Remote code execution (RCE) in Apache Airflow

    An issue was found in Apache Airflow versions 1.10.10 and below. A remote code/command injection vulnerability was discovered in one of the example DAGs shipped with Airflow which would allow any authenticated user to run arbitrary commands as the user runnin…

    KEV Jan 18, 2022
  • High 7.2
    CVE-2019-19609 Public exploit EPSS 54%

    Command Injection in strapi

    The Strapi framework before 3.0.0-beta.17.8 is vulnerable to Remote Code Execution in the Install and Uninstall Plugin components of the Admin panel, because it does not sanitize the plugin name, and attackers can inject arbitrary shell commands to be execute…

  • Unscored —
    CVE-2019-15588 Public exploit

    There is an OS Command Injection in Nexus Repository Manager <= 2.14.14 (bypass CVE-2019-5475) that could allow an atta…