Fallos del tipo CWE-77
2808 resultadosInjeção de comando via entrada não sanitizada
O software constrói comandos (shell, SQL, LDAP, etc.) usando dados de entrada do usuário sem neutralizar caracteres especiais que alteram a semântica do comando. Um atacante injeta metacaracteres (como `;`, `|`, `$()`) para executar instruções não previstas.
Ejemplo
Um script PHP que executa `system('ping ' . $_GET['host'])` sem validação. Um atacante passa `8.8.8.8; rm -rf /` e consegue deletar arquivos, porque o ponto-e-vírgula encadeia comandos no shell.
Cómo mitigar
Use APIs de execução que separam dados de comando (ex: `execvp()` com array de argumentos em vez de shell, prepared statements para SQL). Se shell for inevitável, whitelist rigoroso de entrada e escape apropriado com `escapeshellarg()` ou equivalente na linguagem.
CVE-2022-21668HIGHPipenv's requirements.txt parsing allows malicious index url in commentsEPSS 3.9%CVE-2024-45257HIGHA Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbitrary commands on thEPSS 3.9%CVE-2020-8171—We have recently released new version of AirMax AirOS firmware v6.3.0 for TI, XW and XM boards that fixes vulnerabilities found on AirMax AiEPSS 3.9%CVE-2023-31473MEDIUMAn issue was discovered on GL.iNet devices before 3.216. There is an arbitrary file write in which an empty file can be created anywhere on EPSS 3.9%CVE-2018-16461—A command injection vulnerability in libnmapp package for versions <0.4.16 allows arbitrary commands to be executed via arguments to the ranEPSS 3.9%CVE-2023-0611HIGHTRENDnet TEW-652BRP Web Management Interface get_set.ccp command injectionEPSS 3.9%CVE-2025-4350HIGHD-Link DIR-600L wake_on_lan command injectionEPSS 3.9%CVE-2025-4349HIGHD-Link DIR-600L formSysCmd command injectionEPSS 3.9%CVE-2026-4205MEDIUMD-Link DNS-1550-04 app_mgr.cgi FTP_Server_BlockIP_Del command injectionEPSS 3.8%CVE-2026-4195MEDIUMD-Link DNS-1550-04 wizard_mgr.cgi command injectionEPSS 3.8%CVE-2023-23295HIGHKorenix Jetwave 4200 Series 1.3.0 and JetWave 3000 Series 1.6.0 are vulnerable to Command Injection via /goform/formSysCmd. An attacker an mEPSS 3.8%CVE-2025-60697HIGHA command injection vulnerability exists in the D-Link DIR-882 Router firmware DIR882A1_FW102B02 within the `prog.cgi` and `rc` binaries. ThEPSS 3.8%CVE-2024-23346CRITICALpymatgen arbitrary code execution when parsing a maliciously crafted JonesFaithfulTransformation transformation_stringEPSS 3.8%CVE-2026-3102MEDIUMexiftool PNG File MacOS.pm SetMacOSTags os command injectionEPSS 3.8%CVE-2025-15256MEDIUMEdimax BR-6208AC Web-based Configuration formStaDrvSetup command injectionEPSS 3.8%CVE-2025-7553MEDIUMD-Link DIR-818LW System Time Page os command injectionEPSS 3.8%CVE-2025-15254MEDIUMTenda W6-S ATE Service ate TendaAte os command injectionEPSS 3.8%CVE-2022-29184HIGHCommand Injection/Argument Injection in GoCDEPSS 3.8%CVE-2025-11141MEDIUMRuijie NBR2100G-E branch_passw.php listAction os command injectionEPSS 3.8%CVE-2025-10107MEDIUMTRENDnet TEW-831DR formSysCmd command injectionEPSS 3.8%