Weaknesses of type CWE-1287

160 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.9%CVE-2024-6298CRITICALremote code executionEPSS 19.0%CVE-2021-43802CRITICALAdmin privilege escalation and arbitrary code execution via malicious *.etherpad importsEPSS 2.0%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-2026-25639HIGHAxios affected by Denial of Service via __proto__ Key in mergeConfigEPSS 1.8%CVE-2026-5946HIGHInvalid handling of CLASS != INEPSS 1.7%CVE-2026-59680HIGHyast2-users: OS command injection via LDAP-supplied shadowLastChange/shadowExpire attributeEPSS 1.6%CVE-2025-59259MEDIUMWindows Local Session Manager (LSM) Denial of Service VulnerabilityEPSS 1.5%CVE-2025-59257MEDIUMWindows Local Session Manager (LSM) Denial of Service VulnerabilityEPSS 1.5%CVE-2024-51546HIGHCredentails DisclosureEPSS 1.5%CVE-2022-20783HIGHCisco TelePresence Collaboration Endpoint and RoomOS Software H.323 Denial of Service VulnerabilityEPSS 1.4%CVE-2026-44249HIGHNetty has an IPv6 Subnet Filter Bypass via Incorrect Comparator MaskingEPSS 1.3%CVE-2026-50524HIGH.NET Framework Denial of Service VulnerabilityEPSS 1.2%CVE-2026-2004HIGHPostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary codeEPSS 1.2%CVE-2022-39369HIGHService Hostname Discovery Exploitation in phpCASEPSS 1.2%CVE-2023-4522MEDIUMImproper Validation of Specified Type of Input in GitLabEPSS 1.2%CVE-2025-58729MEDIUMWindows Local Session Manager (LSM) Denial of Service VulnerabilityEPSS 1.1%CVE-2026-4598HIGHVersions of the package jsrsasign before 11.1.1 are vulnerable to Infinite loop via the bnModInverse function in ext/jsbn2.js when the BigInEPSS 1.0%