Fallos del tipo CWE-78

4584 resultados

Injeção de Comando do Sistema Operacional

A aplicação constrói comandos do SO (shell, cmd.exe, etc.) usando dados de entrada do usuário ou de fontes externas sem validar ou sanitizar adequadamente. Um atacante consegue injetar metacaracteres especiais (como ;, |, &, `, $()) para executar comandos arbitrários além daqueles originalmente planejados.

Ejemplo

Uma API que executa `ping hostname` recebendo o hostname como parâmetro GET faz isso: `exec('ping ' + request.query.host)`. Um atacante passa `8.8.8.8; rm -rf /` e consegue deletar arquivos do servidor, não apenas fazer ping.

Cómo mitigar

Evite construir comandos concatenando strings com entrada externa — use bibliotecas que parametrizem comandos ou listas de argumentos (como execFile no Node.js, subprocess com lista em Python, ProcessBuilder em Java). Se for inevitável, valide contra uma whitelist rígida e, se disponível, use modo restrito do shell (sh -c com argumentos seguros) ou contenha a execução em sandbox/container.

CVE-2025-34033HIGH5VTechnologies Blue Angel Software Suite OS Command InjectionEPSS 3.9%CVE-2017-17407—This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of NetGain Systems Enterprise Manager v7.2.EPSS 3.9%CVE-2021-31891—A vulnerability has been identified in Desigo CC (All versions with OIS Extension Module), GMA-Manager (All versions with OIS running on DebEPSS 3.8%CVE-2022-44808CRITICALA command injection vulnerability has been found on D-Link DIR-823G devices with firmware version 1.02B03 that allows an attacker to executeEPSS 3.8%CVE-2023-38120HIGHAdtran SR400ac ping Command Injection Remote Code Execution VulnerabilityEPSS 3.8%CVE-2024-0295HIGHTotolink LR1200GB cstecgi.cgi setWanCfg os command injectionEPSS 3.8%CVE-2024-0297HIGHTotolink N200RE cstecgi.cgi UploadFirmwareFile os command injectionEPSS 3.8%CVE-2024-0294HIGHTotolink LR1200GB cstecgi.cgi setUssd os command injectionEPSS 3.8%CVE-2024-0298HIGHTotolink N200RE cstecgi.cgi setDiagnosisCfg os command injectionEPSS 3.8%CVE-2024-0296HIGHTotolink N200RE cstecgi.cgi NTPSyncWithHost os command injectionEPSS 3.8%CVE-2024-0299HIGHTotolink N200RE cstecgi.cgi setTracerouteCfg os command injectionEPSS 3.8%CVE-2020-26301HIGHCommand injection in mscdex/ssh2EPSS 3.8%CVE-2025-34044CRITICALWIFISKY 7-Layer Flow Control Router Remote Command ExecutionEPSS 3.8%CVE-2026-3102MEDIUMexiftool PNG File MacOS.pm SetMacOSTags os command injectionEPSS 3.8%CVE-2022-50791HIGHSOUND4 IMPACT/FIRST/PULSE/Eco <=2.x Conditional Command Injection via ping.phpEPSS 3.8%CVE-2025-34024CRITICALEdimax EW-7438RPn Mini OS Command Injection via mp.aspEPSS 3.8%CVE-2020-15123CRITICALCommand injection in codecov (npm package)EPSS 3.8%CVE-2019-1885HIGHCisco Integrated Management Controller Command Injection VulnerabilityEPSS 3.8%CVE-2025-7553MEDIUMD-Link DIR-818LW System Time Page os command injectionEPSS 3.8%CVE-2021-30166HIGHMERIT LILIN ENT.CO.,LTD. P2/Z2/P3/Z3 IP camera - Command InjectionEPSS 3.8%