Weaknesses of type CWE-78

5,015 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-2019-10891CRITICALAn issue was discovered in D-Link DIR-806 devices. There is a command injection in function hnap_main, which calls system() without checkingEPSS 19.4%CVE-2023-26315MEDIUMXiaomi router has a command injection vulnerability after authorizationEPSS 19.4%CVE-2017-14094—A vulnerability in Trend Micro Smart Protection Server (Standalone) versions 3.2 and below could allow an attacker to perform remote commandEPSS 19.4%CVE-2025-9752MEDIUMD-Link DIR-852 SOAP Service soap.cgi soapcgi_main os command injectionEPSS 18.9%CVE-2023-24261HIGHA vulnerability in GL.iNET GL-E750 Mudi before firmware v3.216 allows authenticated attackers to execute arbitrary code via a crafted POST rEPSS 18.8%CVE-2018-15716—NUUO NVRMini2 version 3.9.1 is vulnerable to authenticated remote command injection. An attacker can send crafted requests to upgrade_handleEPSS 18.5%CVE-2025-60787HIGHMotionEye v0.43.1b4 and before is vulnerable to OS Command Injection in configuration parameters such as image_file_name. Unsanitized user iEPSS 18.5%CVE-2019-5475—The Nexus Yum Repository Plugin in v2 is vulnerable to Remote Code Execution when instances using CommandLineExecutor.java are supplied vulnEPSS 18.4%CVE-2023-23368CRITICALQTS, QuTS hero, QuTScloudEPSS 18.4%CVE-2022-40624CRITICALpfSense pfBlockerNG through 2.1.4_27 allows remote attackers to execute arbitrary OS commands as root via the HTTP Host header, a different EPSS 18.3%CVE-2022-42139HIGHDelta Electronics DVW-W02W2-E2 1.5.0.10 is vulnerable to Command Injection via Crafted URL.EPSS 18.2%CVE-2024-13129HIGHRoxy-WI roxy.py action_service os command injectionEPSS 17.7%CVE-2024-48634HIGHD-Link DIR_882_FW130B06 and DIR_878 DIR_878_FW130B08 were discovered to contain a command injection vulnerability via the key parameter in tEPSS 17.6%CVE-2022-2314—VR Calendar < 2.3.2 - Unauthenticated Arbitrary Function CallEPSS 17.6%CVE-2025-6898MEDIUMD-Link DI-7300G+ in proxy_client.asp os command injectionEPSS 17.5%CVE-2023-29804HIGHWFS-SR03 v1.0.3 was discovered to contain a command injection vulnerability via the sys_smb_pwdmod function.EPSS 17.5%CVE-2024-58274HIGHHikvision CSMP (Comprehensive Security Management Platform) iSecure Center through 2024-08-01 allows execution of a command within $( ) in /EPSS 17.4%CVE-2020-4006CRITICALVMware Workspace One Access, Access Connector, Identity Manager, and Identity Manager Connector address have a command injection vulnerabiliEPSS 17.3%KEVCVE-2026-2131MEDIUMXixianLiang HarmonyOS-mcp-server input_text os command injectionEPSS 17.2%CVE-2020-7361CRITICALZenTao Pro Command InjectionEPSS 17.2%