Falhas do tipo CWE-241

33 resultados

Tratamento inadequado de tipos de dados inesperados

Ocorre quando o código assume um tipo de dado específico (string, inteiro, objeto) sem validar ou converter apropriadamente, causando comportamento inesperado quando recebe um tipo diferente. Pode levar a crashes, lógica quebrada, ou execução de código indevido.

Exemplo

Uma API espera um ID numérico, mas recebe uma string com caracteres especiais ou um objeto JSON. Se o código não valida o tipo, pode tentar operações matemáticas em uma string, causando erro de execução ou interpretação errada dos dados.

Como mitigar

Sempre valide e normalize tipos de entrada — use type checks, conversão explícita com tratamento de erro, e schemas de validação (como JSON Schema ou Zod). Rejeite dados que não correspondam ao tipo esperado em vez de tentar convertê-los silenciosamente.

CVE-2025-1004MEDIUMCertain HP LaserJet Pro Printers – Potential Denial of ServiceEPSS 0.4%CVE-2022-39065MEDIUMA single malformed IEEE 802.15.4 (Zigbee) frame makes the TRÅDFRI gateway unresponsive, such that connected lighting cannot be controlled wiEPSS 0.4%CVE-2022-39064HIGHAn attacker sending a single malformed IEEE 802.15.4 (Zigbee) frame makes the TRÅDFRI bulb blink, and if they replay (i.e. resend) the same EPSS 0.4%CVE-2021-0243MEDIUMJunos OS: EX4300: Stateless firewall policer fails to discard trafficEPSS 0.4%CVE-2024-37316MEDIUMNextcloud Calendar's event create can create attachments that link to other websitesEPSS 0.4%CVE-2025-66550MEDIUMNextcloud Calendar attachments of local files are offered to downloadedEPSS 0.3%CVE-2025-63548HIGHAn issue in Eprosima Micro-XREC-DDS Agent v.3.0.1 allows a remote attacker to cause a denial of service via a packet specially crafted to beEPSS 0.3%CVE-2026-47110HIGHTiptap for PHP < 2.1.1 DoS via Malformed href AttributeEPSS 0.3%CVE-2024-21927MEDIUMImproper input validation in Satellite Management Controller (SMC) may allow an attacker with privileges to use certain special characters iEPSS 0.3%CVE-2022-22193MEDIUMJunos OS and Junos OS Evolved: In a BGP rib-sharding scenario when a certain CLI command is executed the rpd process might crashEPSS 0.2%CVE-2024-32268LOWAn issue in Tuya Smart camera U6N v.3.2.5 allows a remote attacker to cause a denial of service via a crafted packet to the network connectiEPSS 0.2%CVE-2024-21935MEDIUMImproper input validation in Satellite Management Controller (SMC) may allow an attacker with privileges to manipulate Redfish® API commandsEPSS 0.2%CVE-2025-7339LOWon-headers vulnerable to http response header manipulationEPSS 0.2%