Falhas do tipo CWE-758

27 resultados

Dependência de comportamento indefinido ou não especificado

O código depende de um comportamento que não é garantido pelo padrão da linguagem ou plataforma — pode funcionar em um ambiente e falhar em outro. Isso acontece quando se assume detalhes de implementação, ordem de operações não definida, ou comportamento específico de compilador/SO. O risco é que o código se torne imprevisível e explorado.

Exemplo

Um programa em C que lê variáveis não inicializadas, confia na ordem de avaliação de parâmetros em uma função, ou assume tamanho de tipos de dados sem usar sizeof(). O mesmo código compila tranquilo em um ambiente, mas quebra silenciosamente em outro, potencialmente criando uma brecha de segurança.

Como mitigar

Use padrões explícitos (C99, C++11, etc.) e configure warnings do compilador ao máximo (-Wall -Wextra). Inicialize sempre variáveis, use sizeof() para tamanhos, evite suposições sobre ordem de execução, e teste em múltiplas plataformas e compiladores durante o desenvolvimento.

CVE-2026-22858MEDIUMFreeRDP has a global-buffer-overflow in crypto_base64_decodeEPSS 0.6%CVE-2023-30624LOWWasmtime has Undefined Behavior in Rust runtime functionsEPSS 0.4%CVE-2026-4705CRITICALUndefined behavior in the WebRTC: Signaling componentEPSS 0.4%CVE-2025-55160MEDIUMImageMagick Undefined Behavior (function-type-mismatch) in CloneSplayTreeEPSS 0.4%CVE-2026-24404HIGHiccDEV has Null Pointer Deference and Undefined Behavior in CIccXmlArrayType()EPSS 0.4%CVE-2026-24407HIGHiccDEV has Undefined Behavior in icSigCalcOp()EPSS 0.4%CVE-2024-4774MEDIUMThe `ShmemCharMapHashEntry()` code was susceptible to potentially undefined behavior by bypassing the move semantics for one of its data memEPSS 0.4%CVE-2026-4724CRITICALUndefined behavior in the Audio/Video componentEPSS 0.3%CVE-2026-21677HIGHiccDEV has Undefined Behavior in CIccCLUT::Init()EPSS 0.3%CVE-2026-24410HIGHiccDEV has Undefined Behavior and Null Pointer Deference in CIccProfileXml::ParseBasic()EPSS 0.3%CVE-2026-24409HIGHiccDEV has Undefined Behavior and Null Pointer Deference in CIccTagXmlFloatNum<>::ParseXml()EPSS 0.3%CVE-2026-24411HIGHiccDEV has Undefined Behavior and Null Pointer Deference in CIccTagXmlSegmentedCurve::ToXml()EPSS 0.3%CVE-2026-4718HIGHUndefined behavior in the WebRTC: Signaling componentEPSS 0.3%CVE-2026-16441MEDIUMEclipse OpenJ9 : Method resolution default method precedence failureEPSS 0.3%CVE-2026-21686HIGHiccDEV has Undefined Behavior in CIccTagLutAtoB::Validate()EPSS 0.2%CVE-2026-21687HIGHiccDEV has Undefined Behavior in CIccTagCurve::CIccTagCurve()EPSS 0.2%CVE-2026-21685HIGHiccDEV has Undefined Behavior in CIccTagLut16::Read()EPSS 0.2%CVE-2026-21684HIGHiccDEV has Undefined Behavior in CIccTagSpectralViewingConditions()EPSS 0.2%CVE-2026-40279LOWBACnet Stack: Undefined-behavior signed left shift in `decode_signed32()`EPSS 0.2%CVE-2025-54811MEDIUMOpenPLC_V3EPSS 0.2%