Fallos del tipo CWE-704

81 resultados

Conversão de tipo ou casting incorreto

Ocorre quando o código converte (faz cast de) um valor para um tipo de dado incompatível ou incorreto, sem validação adequada. Isso causa comportamento imprevisto: acesso a memória inválida, corrupção de dados, ou execução de código não autorizado, porque o programa interpreta bytes de forma errada.

Ejemplo

Um aplicativo recebe um objeto JSON como string, faz casting direto para um tipo de estrutura interna sem verificar se os campos existem ou têm o tipo esperado. Um atacante envia dados malformados, e a conversão permite ler ou escrever em áreas de memória sensíveis.

Cómo mitigar

Sempre valide dados antes de fazer casting: verifique o tipo real em tempo de execução (tipo dinâmico), use schemas ou validadores (JSON Schema, Protobuf), e prefira conversões seguras com tratamento de erro em vez de casts diretos. Em linguagens com tipagem forte, deixe o compilador fazer o trabalho.

CVE-2026-25503HIGHiccDEV Has Type Confusion in CIccTagEmbeddedHeightImage::Validate()EPSS 0.3%CVE-2026-42576MEDIUMapko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discoveryEPSS 0.3%CVE-2024-35303HIGHA vulnerability has been identified in Tecnomatix Plant Simulation V2302 (All versions < V2302.0012), Tecnomatix Plant Simulation V2404 (AllEPSS 0.3%CVE-2026-25613HIGHAn unsafe cast in the MongoDB query planner can result in a segmentation fault.EPSS 0.2%CVE-2026-22041LOWloggingredactor converts non-string types to string types in logsEPSS 0.2%CVE-2023-45204HIGHA vulnerability has been identified in Tecnomatix Plant Simulation V2201 (All versions < V2201.0009), Tecnomatix Plant Simulation V2302 (AllEPSS 0.2%CVE-2026-24856HIGHiccDEV has UB runtime error in <icTagTypeSignature>EPSS 0.2%CVE-2022-49873MEDIUMbpf: Fix wrong reg type conversion in release_reference()EPSS 0.2%CVE-2022-41668HIGHA CWE-704: Incorrect Project Conversion vulnerability exists that allows adversaries with local user privileges to load a project file from EPSS 0.2%CVE-2023-21665HIGHIncorrect Type Conversion or Cast in GraphicsEPSS 0.2%CVE-2026-21673HIGHiccDEV has Integer Overflow/Underflow in CIccXmlArrayType::ParseTextCountNum()EPSS 0.2%CVE-2026-46690MEDIUMunbounded-spsc: Sender::send pointer-as-value transmute causes OOB read and fake-Arc drop under TX/RX raceEPSS 0.1%CVE-2022-40531HIGHIncorrect type conversion in WLANEPSS 0.1%CVE-2022-33301MEDIUMIncorrect type conversion or cast in AudioEPSS 0.1%CVE-2022-25715MEDIUMIncorrect type casting in Display driverEPSS 0.1%CVE-2022-33240MEDIUMIncorrect type conversion or cast in AudioEPSS 0.1%CVE-2023-21638MEDIUMIncorrect Type Conversion or Cast in VideoEPSS 0.1%CVE-2023-21651CRITICALIncorrect Type Conversion or Cast in CoreEPSS 0.1%CVE-2024-43058HIGHIncorrect Type Conversion or Cast in Multimedia FrameworksEPSS 0.1%CVE-2024-21478MEDIUMNULL Pointer Dereference in GraphicsEPSS 0.1%