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-2021-20329MEDIUMSpecific cstrings input may not be properly validated in the Go DriverEPSS 1.0%CVE-2026-26115HIGHSQL Server Elevation of Privilege VulnerabilityEPSS 1.0%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-2026-24307CRITICALM365 Copilot Information Disclosure VulnerabilityEPSS 0.9%CVE-2023-3900MEDIUMImproper Validation of Specified Type of Input in GitLabEPSS 0.9%CVE-2024-5594CRITICALOpenVPN before 2.6.11 does not santize PUSH_REPLY messages properly which an attacker controlling the server can use to inject unexpected arEPSS 0.8%CVE-2024-31948MEDIUMIn FRRouting (FRR) through 9.1, an attacker using a malformed Prefix SID attribute in a BGP UPDATE packet can cause the bgpd daemon to crashEPSS 0.8%CVE-2023-3917MEDIUMImproper Validation of Specified Type of Input in GitLabEPSS 0.8%CVE-2023-3904MEDIUMImproper Validation of Specified Type of Input in GitLabEPSS 0.8%CVE-2024-9404MEDIUMDenial-of-Service VulnerabilityEPSS 0.8%CVE-2026-29645HIGHNEMU (OpenXiangShan/NEMU) before v2025.12.r2 contains an improper instruction-validation flaw in its RISC-V Vector (RVV) decoder. The decodeEPSS 0.7%CVE-2025-12977CRITICALCVE-2025-12977EPSS 0.7%CVE-2025-46342HIGHKyverno vulnerable to bypass of policy rules that use namespace selectors in match statementsEPSS 0.7%CVE-2025-32442HIGHFastify vulnerable to invalid content-type parsing, which could lead to validation bypassEPSS 0.7%CVE-2024-43426HIGHMoodle: arbitrary file read risk through pdftexEPSS 0.7%CVE-2024-8403HIGHDenial-of-Service Vulnerability in Ethernet port on MELSEC iQ-F Ethernet Module and EtherNet/IP ModuleEPSS 0.7%CVE-2022-22228HIGHJunos OS: IPv6 OAM SRv6 network-enabled devices are vulnerable to Denial of Service (DoS) due to RPD memory leak upon receipt of specific a IPv6 packetEPSS 0.7%CVE-2021-44694MEDIUMAffected devices don't process correctly certain special crafted packets sent to port 102/tcp, which could allow an attacker to cause a deniEPSS 0.6%CVE-2025-25186MEDIUMNet::IMAP vulnerable to possible DoS by memory exhaustionEPSS 0.6%CVE-2024-54083MEDIUMDoS via lack of type validation in CallsEPSS 0.6%