Weaknesses of type CWE-78

5,020 results

Injeção de comandos do sistema operacional

A aplicação constrói comandos do SO usando entrada do usuário sem sanitizar adequadamente, permitindo que um atacante injete comandos arbitrários. Quando a entrada contém metacaracteres (como `|`, `;`, `&&`, backticks), o shell interpreta-os como operadores, executando código não intencional com os privilégios da aplicação.

Example

Um script PHP que executa `system('ping ' . $_GET['host'])` permite um atacante passar `127.0.0.1; rm -rf /` como parâmetro, executando deleção de arquivos. Ou em Java, `Runtime.exec()` com strings concatenadas do usuário sem validação.

How to mitigate

Use APIs que não invocam shell (ex: `execvp()` em C, arrays de parâmetros em Java/Python, ou prepared commands). Se inevitável usar shell, escape rigorosamente com funções específicas (`escapeshellarg()` em PHP) ou valide contra whitelist de caracteres permitidos. Nunca confie em blacklist de caracteres perigosos.

CVE-2021-22795CRITICALA CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability exists that could cause reEPSS 3.1%CVE-2025-50196HIGHChamilo: OS Command Injection in /plugin/vchamilo/views/editinstance.php via POST main_database parameterEPSS 3.1%CVE-2022-3008HIGHCommand Injection on tinygltfEPSS 3.1%CVE-2026-17179HIGHIBM Db2 Mirror for i is affected by multiple vulnerabilitiesEPSS 3.1%CVE-2026-94579MEDIUMAn OS command injection vulnerability exists in the PAM (Pluggable Authentication Module) session cleanup routines during SSH session terminEPSS 3.1%CVE-2025-11141MEDIUMRuijie NBR2100G-E branch_passw.php listAction os command injectionEPSS 3.1%CVE-2026-41923CRITICALWDR201A WiFi Extender OS Command Injection via internet.cgiEPSS 3.1%CVE-2025-64756HIGHglob CLI: Command injection via -c/--cmd executes matches with shell:trueEPSS 3.1%CVE-2026-4611HIGHTOTOLINK X6000R shttpd setLanCfg privilege escalationEPSS 3.1%CVE-2024-7171MEDIUMTOTOLINK A3600R cstecgi.cgi NTPSyncWithHost os command injectionEPSS 3.1%CVE-2024-7175MEDIUMTOTOLINK A3600R cstecgi.cgi setDiagnosisCfg os command injectionEPSS 3.1%CVE-2020-2507CRITICALcommand injection vulnerability in HelpdeskEPSS 3.1%CVE-2020-15631HIGHThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DAP-1860 1.04B03_HOTFIX WEPSS 3.1%CVE-2022-25912HIGHRemote Code Execution (RCE)EPSS 3.1%CVE-2024-8574MEDIUMTOTOLINK AC1200 T8 cstecgi.cgi setParentalRules os command injectionEPSS 3.1%CVE-2026-110957CRITICALWavlink WL-WN530BE2-A Login Processing api.cgi sub_12580 os command injectionEPSS 3.1%CVE-2021-21015HIGHMagento Commerce Unauthorized Data Modification Could Lead to Arbitrary Code ExecutionEPSS 3.1%CVE-2026-9254HIGHCommand Injection Vulnerability in Parent Control of Multiple TP-Link Archer DevicesEPSS 3.1%CVE-2020-12522CRITICALCommand Injection Vulnerability in I/O-Check Service of WAGO PFC100, PFC200 and Touch Panel 600 Series with firmware versions <=FW10EPSS 3.1%CVE-2026-6025CRITICALTotolink A7100RU CGI cstecgi.cgi setSyslogCfg os command injectionEPSS 3.1%