Fallos del tipo CWE-758

27 resultados

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

O código confia em comportamentos que a especificação da linguagem não define, deixa em aberto ou deixa a cargo de cada compilador/interpretador. Isso causa falhas imprevisíveis: o programa funciona em um ambiente, quebra em outro, ou se torna vulnerável a exploração conforme a implementação muda.

Ejemplo

Um código C que depende da ordem de avaliação de argumentos em uma função (comportamento indefinido em C), ou que assume um inteiro com sinal sempre terá overflow em direção previsível. Ao mudar de compilador ou versão, o comportamento pode se alterar completamente.

Cómo mitigar

Use apenas comportamentos explicitamente garantidos pela especificação da linguagem. Ative avisos do compilador (flags como -Wall, -Wextra no GCC/Clang), revise código que dependa de detalhes de implementação, e teste em múltiplos compiladores e plataformas antes de colocar em produção.

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%