Weaknesses of type CWE-77

2,809 results

Injeção de comando por entrada não neutralizada

O software monta um comando (shell, sistema operacional ou aplicação) usando dados recebidos de fora (entrada do usuário, API, banco de dados) sem remover ou neutralizar caracteres especiais que alteram a semântica do comando. Isso permite que um atacante injete comandos arbitrários que serão executados com as permissões da aplicação.

Example

Um script PHP que executa ping com o IP fornecido pelo usuário: `system('ping ' . $_GET['ip'])`. Um atacante passa `8.8.8.8; rm -rf /` e consegue deletar arquivos do servidor, porque o ponto-e-vírgula não foi escapado e o shell interpreta dois comandos sequenciais.

How to mitigate

Use APIs seguras que não envolvem interpretação de shell (ex: ProcessBuilder em Java, subprocess.run com shell=False em Python). Se imperativo usar shell, valide com whitelist rigorosa (apenas caracteres alfanuméricos/IPs válidos) e escape com funções específicas da linguagem (escapeshellarg em PHP, shlex.quote em Python).

CVE-2025-22941CRITICALA command injection vulnerability in the web interface of Adtran 411 ONT L80.00.0011.M2 allows attackers to escalate privileges to root and EPSS 2.2%CVE-2025-54100HIGHPowerShell Remote Code Execution VulnerabilityEPSS 2.2%CVE-2020-27867MEDIUMThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of NETGEAR R6020, R6080, R6120, R62EPSS 2.2%CVE-2023-41031HIGHJuplink RX4-1500 homemng.htm Command Injection VulnerabilityEPSS 2.2%CVE-2024-46662HIGHA improper neutralization of special elements used in a command ('command injection') in Fortinet FortiManager versions 7.4.1 through 7.4.3,EPSS 2.2%CVE-2025-43843HIGHGHSL-2025-013_Retrieval-based-Voice-Conversion-WebUIEPSS 2.2%CVE-2024-0579MEDIUMTotolink X2000R formMapDelDevice command injectionEPSS 2.2%CVE-2021-41599—Improper control flow in GitHub Enterprise Server hosted Pages leads to remote code executionEPSS 2.2%CVE-2026-15035MEDIUMbentoml OpenLLM Model Repository Directory Name common.py async_run_command command injectionEPSS 2.2%CVE-2025-0328MEDIUMKaiYuanTong ECT Platform HTTP POST Request runCode.php command injectionEPSS 2.2%CVE-2024-28354CRITICALThere is a command injection vulnerability in the TRENDnet TEW-827DRU router with firmware version 2.10B01. An attacker can inject commands EPSS 2.2%CVE-2023-42810CRITICALsysteminformation SSID Command Injection VulnerabilityEPSS 2.2%CVE-2025-14184MEDIUMSGAI Space1 NAS N1211DS gsaiagent JSONAPI NGNIX_UPLOAD command injectionEPSS 2.2%CVE-2023-31529HIGHMotorola CX2L Router 1.0.1 was discovered to contain a command injection vulnerability via the system_time_timezone parameter.EPSS 2.2%CVE-2024-45505HIGHApache HertzBeat: Exists Native Deser RCE and file writing vulnerabilitiesEPSS 2.2%CVE-2023-31528HIGHMotorola CX2L Router 1.0.1 was discovered to contain a command injection vulnerability via the staticroute_list parameter.EPSS 2.2%CVE-2023-31531HIGHMotorola CX2L Router 1.0.1 was discovered to contain a command injection vulnerability via the tomography_ping_number parameter.EPSS 2.2%CVE-2020-2490HIGHIf exploited, the command injection vulnerability could allow remote attackers to execute arbitrary commands. This issue affects: QNAP SysteEPSS 2.2%CVE-2021-4329MEDIUMjson-logic-js logic.js command injectionEPSS 2.2%CVE-2026-5532MEDIUMScrapeGraphAI scrapegraph-ai GenerateCodeNode generate_code_node.py create_sandbox_and_execute os command injectionEPSS 2.2%