Weaknesses of type CWE-758

27 results

Dependência de comportamento indefinido ou dependente da implementação

O código confia em como o compilador, sistema operacional ou runtime implementam algo que a especificação deixa em aberto — em vez de garantir comportamento explícito. Quando esse comportamento muda (por versão, otimização ou plataforma), o código quebra ou fica vulnerável.

Example

Um programa pressupõe a ordem de inicialização de variáveis globais entre arquivos diferentes, ou confia que um inteiro overflow vai saturar de um jeito específico. Funciona em um compilador, falha em outro, ou a otimização quebra a lógica de segurança.

How to mitigate

Evite depender de detalhes não garantidos pela especificação da linguagem. Use tipos seguros, operações bem-definidas e testes em múltiplas plataformas/compiladores. Documente e valide explicitamente comportamentos críticos de segurança em vez de deixá-los implícitos.

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%