Fallos del tipo CWE-241

35 resultados

Tratamento inadequado de tipos de dados inesperados

Ocorre quando o código assume que uma variável, parâmetro ou entrada terá um tipo específico, mas não valida ou trata casos onde o tipo real é diferente. Se o código não verifica o tipo antes de usar, pode causar crashes, comportamentos impredizíveis ou execução de lógica errada.

Ejemplo

Uma API recebe um campo 'idade' esperando sempre um inteiro. Se um atacante envia uma string ou null, e o código tenta fazer cálculos sem validar primeiro, ocorre erro de tipo ou desvio lógico que pode ser explorado para bypass de validação ou negação de serviço.

Cómo mitigar

Sempre valide o tipo de dados na entrada (use type hints, assertions ou verificações explícitas). Em linguagens dinâmicas, implemente guards claros antes de operar sobre dados externos; em linguagens tipadas, enforce tipos em tempo de compilação e use safe parsing com tratamento de erro.

CVE-2023-28961MEDIUMJunos OS: ACX Series: IPv6 firewall filter is not installed in PFE when "from next-header ah" is usedEPSS 0.4%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-0242MEDIUMJunos OS: EX4300: FPC crash upon receipt of specific frames on an interface without L2PT or dot1x configuredEPSS 0.4%CVE-2026-73785HIGHHPE IceWall Federation Agent and Proxy, Denial of Service vulnerabilityEPSS 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-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-21935MEDIUMImproper input validation in Satellite Management Controller (SMC) may allow an attacker with privileges to manipulate Redfish® API commandsEPSS 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-2025-7339LOWon-headers vulnerable to http response header manipulationEPSS 0.2%