Weaknesses of type CWE-77

2,807 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-4999MEDIUMLinksys FGW3000-AH/FGW3000-HK HTTP POST Request sysconf.cgi sub_4153FC command injectionEPSS 7.8%CVE-2024-7436MEDIUMD-Link DI-8100 msp_info.htm msp_info_htm command injectionEPSS 7.8%CVE-2025-15132MEDIUMZSPACE Z4Pro+ HTTP POST Request open zfilev2_api_open command injectionEPSS 7.7%CVE-2025-15131MEDIUMZSPACE Z4Pro+ HTTP POST Request status zfilev2_api_SafeStatus command injectionEPSS 7.7%CVE-2025-1616MEDIUMFiberHome AN5506-01A ONU GPON Diagnosis os command injectionEPSS 7.7%CVE-2025-5620MEDIUMD-Link DIR-816 setipsec_config os command injectionEPSS 7.7%CVE-2024-11772CRITICALCommand injection in the admin web console of Ivanti CSA before version 5.0.3 allows a remote authenticated attacker with admin privileges tEPSS 7.7%CVE-2026-42824MEDIUMM365 Copilot Information Disclosure VulnerabilityEPSS 7.6%CVE-2023-2377HIGHUbiquiti EdgeRouter X Web Management command injectionEPSS 7.6%CVE-2023-2373HIGHUbiquiti EdgeRouter X Web Management command injectionEPSS 7.6%CVE-2023-2378HIGHUbiquiti EdgeRouter X Web Management command injectionEPSS 7.6%CVE-2023-2376HIGHUbiquiti EdgeRouter X Web Management command injectionEPSS 7.6%CVE-2025-43953HIGHIn 2wcom IP-4c 2.16, the web interface allows admin and manager users to execute arbitrary code as root via a ping or traceroute field on thEPSS 7.6%CVE-2024-2991MEDIUMTenda FH1203 WriteFacMac formWriteFacMac command injectionEPSS 7.6%CVE-2025-55591CRITICALTOTOLINK-A3002R v4.0.0-B20230531.1404 was discovered to contain a command injection vulnerability in the devicemac parameter in the formMapDEPSS 7.6%CVE-2025-9603MEDIUMTelesquare TLR-2005KSH internet.cgi command injectionEPSS 7.6%CVE-2026-2952MEDIUMVaelsys HTTP POST Request tree_server.php os command injectionEPSS 7.5%CVE-2024-8210MEDIUMD-Link DNS-1550-04 hd_config.cgi sprintf command injectionEPSS 7.5%CVE-2024-8212MEDIUMD-Link DNS-1550-04 hd_config.cgi cgi_FMT_R12R5_2nd_DiskMGR command injectionEPSS 7.5%CVE-2025-5621MEDIUMD-Link DIR-816 qosClassifier os command injectionEPSS 7.5%