Weaknesses of type CWE-77

2,810 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-2024-24897HIGHRemote command execution in A-Tune-CollectorEPSS 1.4%CVE-2023-33235HIGHMXsecurity Command Injection VulnerabilityEPSS 1.4%CVE-2025-26385CRITICALMetasys product command injection vulnerability could allow remote SQL executionEPSS 1.4%CVE-2026-84387MEDIUMA improper neutralization of special elements used in a command ('command injection') vulnerability in Fortinet FortiSandbox 5.2.0, FortiSanEPSS 1.4%CVE-2022-0999HIGHmySCADA myPRO Command InjectionEPSS 1.4%CVE-2024-47460CRITICALUnauthenticated Command Injection Vulnerability in the CLI Service Accessed by the PAPI ProtocolEPSS 1.4%CVE-2026-22103CRITICALCommand injection in NPC start web endpointEPSS 1.4%CVE-2026-22095CRITICALCommand injection in diagnosis web endpointEPSS 1.4%CVE-2021-34592HIGHBender Charge Controller: Command injection via Web interfaceEPSS 1.4%CVE-2026-3964MEDIUMOpenAkita Chat API Endpoint shell.py run os command injectionEPSS 1.4%CVE-2025-58428CRITICALCommand Injection in Veeder-Root TLS4B Automatic Tank Gauge SystemEPSS 1.4%CVE-2025-1229MEDIUMolajowon Loggrove page os command injectionEPSS 1.4%CVE-2024-36783CRITICALTOTOLINK LR350 V9.3.5u.6369_B20220309 was discovered to contain a command injection via the host_time parameter in the NTPSyncWithHost functEPSS 1.4%CVE-2019-14868HIGHIn ksh version 20120801, a flaw was found in the way it evaluates certain environment variables. An attacker could use this flaw to overrideEPSS 1.4%CVE-2022-45094HIGHA vulnerability has been identified in SINEC INS (All versions < V1.0 SP2 Update 1). An authenticated remote attacker with access to the WebEPSS 1.4%CVE-2024-7397CRITICALUnauthenticated Command InjectionEPSS 1.4%CVE-2022-45104HIGH Dell Unisphere for PowerMax vApp, VASA Provider vApp, and Solution Enabler vApp version 9.2.3.x contain a command execution vulnerability. EPSS 1.4%CVE-2025-59737CRITICALMultiple vulnerabilities in AndSoft's e-TMSEPSS 1.4%CVE-2025-59740CRITICALMultiple vulnerabilities in AndSoft's e-TMSEPSS 1.4%CVE-2025-59738CRITICALMultiple vulnerabilities in AndSoft's e-TMSEPSS 1.4%