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-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-20033MEDIUMDoS via custom post type for sysconsole plugin readersEPSS 0.6%CVE-2025-20630MEDIUMMobile crash via object that can't be cast to String in Attachment FieldEPSS 0.6%CVE-2026-55124MEDIUMMicrosoft Word Information Disclosure VulnerabilityEPSS 0.6%CVE-2024-48858HIGHVulnerabilities in TIFF and PCX Image Codecs Impact QNX Software Development PlatformEPSS 0.6%CVE-2025-20088MEDIUMInsufficient Input Validation on Post PropsEPSS 0.6%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 0.5%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.5%CVE-2024-30395HIGHJunos OS and Junos OS Evolved: A malformed BGP tunnel encapsulation attribute will lead to an rpd crashEPSS 0.5%CVE-2024-48851HIGHRemote Code ExecutionEPSS 0.5%CVE-2026-18830HIGHInsufficient input validation in Amazon Bedrock AgentCore harness InvokeHarness APIEPSS 0.5%CVE-2025-20036MEDIUMInsufficient Input Validation on Post PropsEPSS 0.5%CVE-2025-21083MEDIUMInsufficient Input Validation on Post PropsEPSS 0.5%CVE-2024-35213CRITICALVulnerability in SGI Image Codec Impacts BlackBerry QNX Software Development Platform (SDP)EPSS 0.5%CVE-2024-20494HIGHA vulnerability in the TLS cryptography functionality of Cisco Adaptive Security Appliance (ASA) Software and Cisco Firepower Threat DefenseEPSS 0.5%CVE-2026-21932HIGHVulnerability in the Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: AWT, JaEPSS 0.5%CVE-2025-20244HIGHCisco Secure Firewall Adaptive Security Appliance and Secure Firewall Threat Defense Software Remote Access VPN Web Server Denial of Service VulnerabilityEPSS 0.5%CVE-2025-24335LOWSOAP message input validation fault could in theory cause OAM service resource exhaustionEPSS 0.5%CVE-2025-41650HIGHWeidmueller: Denial-of-Service Vulnerability in Industrial Ethernet SwitchesEPSS 0.5%CVE-2025-24876HIGHAuthentication bypass via authorization code injection in SAP ApprouterEPSS 0.5%