Weaknesses of type CWE-1287

149 results

Validação inadequada do tipo de entrada especificado

O software aceita dados de entrada sem verificar corretamente se correspondem ao tipo esperado (inteiro, string, booleano, etc.), permitindo que dados malformados ou de tipo inesperado sejam processados. Isso pode levar a comportamentos imprevisto, injeção de código, corrupção de dados ou bypass de controles de segurança.

Example

Uma API que espera um inteiro em um parâmetro de ID de usuário, mas não valida o tipo antes de usar: um atacante envia uma string contendo SQL ('1 OR 1=1') em vez de um número, causando injeção SQL. Ou uma função JavaScript que recebe um objeto esperando propriedades numéricas, mas aceita strings sem conversão, quebrando a lógica de negócio.

How to mitigate

Implemente validação explícita de tipo antes de processar qualquer entrada: use type checking, conversão segura com tratamento de erro, esquemas (como JSON Schema), e rejeite dados que não correspondam ao tipo esperado. Em linguagens fortemente tipadas, configure validadores em tempo de compilação; em linguagens dinâmicas, valide em runtime com bibliotecas apropriadas.

CVE-2024-4879CRITICALJelly Template Injection Vulnerability in ServiceNow UI MacrosEPSS 100.0%KEVCVE-2022-31007MEDIUMPrivilege escalation from administrator in eLabFTWEPSS 26.1%CVE-2024-6298CRITICALremote code executionEPSS 19.0%CVE-2026-25639HIGHAxios affected by Denial of Service via __proto__ Key in mergeConfigEPSS 2.5%CVE-2021-43802CRITICALAdmin privilege escalation and arbitrary code execution via malicious *.etherpad importsEPSS 2.0%CVE-2026-5946HIGHInvalid handling of CLASS != INEPSS 1.9%CVE-2024-51550CRITICALData Validation / SanitizationEPSS 1.8%CVE-2021-32024CRITICALA remote code execution vulnerability in the BMP image codec of BlackBerry QNX SDP version(s) 6.4 to 7.1 could allow an attacker to potentiaEPSS 1.8%CVE-2024-51546HIGHCredentails DisclosureEPSS 1.5%CVE-2025-59257MEDIUMWindows Local Session Manager (LSM) Denial of Service VulnerabilityEPSS 1.4%CVE-2025-59259MEDIUMWindows Local Session Manager (LSM) Denial of Service VulnerabilityEPSS 1.4%CVE-2022-20783HIGHCisco TelePresence Collaboration Endpoint and RoomOS Software H.323 Denial of Service VulnerabilityEPSS 1.4%CVE-2026-26115HIGHSQL Server Elevation of Privilege VulnerabilityEPSS 1.1%CVE-2022-39369HIGHService Hostname Discovery Exploitation in phpCASEPSS 1.1%CVE-2026-44249HIGHNetty has an IPv6 Subnet Filter Bypass via Incorrect Comparator MaskingEPSS 1.0%CVE-2025-58729MEDIUMWindows Local Session Manager (LSM) Denial of Service VulnerabilityEPSS 1.0%CVE-2021-20329MEDIUMSpecific cstrings input may not be properly validated in the Go DriverEPSS 1.0%CVE-2023-4522MEDIUMImproper Validation of Specified Type of Input in GitLabEPSS 0.9%CVE-2022-43723HIGHA vulnerability has been identified in SICAM PAS/PQS (All versions < V7.0), SICAM PAS/PQS (All versions >= 7.0 < V8.06). Affected software dEPSS 0.9%CVE-2023-3900MEDIUMImproper Validation of Specified Type of Input in GitLabEPSS 0.9%