Falhas do tipo CWE-252

114 resultados

Retorno de função não verificado

O desenvolvedor chama uma função que pode falhar (retornando erro ou null), mas não verifica o resultado antes de usá-lo. O programa segue adiante assumindo sucesso, causando comportamento indefinido ou falha em cascata quando o retorno indicava problema.

Exemplo

Um código abre um arquivo com fopen() sem verificar se retornou NULL. Na linha seguinte, tenta ler do ponteiro inválido, causando crash ou comportamento imprevisível. Ou uma função de criptografia falha silenciosamente, e o código usa dados não-criptografados pensando que estão protegidos.

Como mitigar

Sempre verificar o retorno de funções críticas (alocação de memória, I/O, criptografia, validação). Use if/else, try-catch ou assertions conforme o padrão da linguagem. Ative avisos do compilador para funções marcadas como 'warn_unused_result'.

CVE-2025-25724MEDIUMlist_item_verbose in tar/util.c in libarchive through 3.7.7 does not check an strftime return value, which can lead to a denial of service oEPSS 0.4%CVE-2025-64169MEDIUMWazuh NULL pointer dereference in fim_alert line 666EPSS 0.4%CVE-2026-28691HIGHImageMagick has an uninitialized pointer dereference in JBIG decoderEPSS 0.4%CVE-2025-61935HIGHBIG-IP Advanced WAF and ASM vulnerabilityEPSS 0.4%CVE-2026-22046HIGHiccDEV has heap-buffer-overflow in CIccProfileXml::ParseBasic() at IccXML/IccLibXML/IccProfileXml.cppEPSS 0.3%CVE-2023-41092HIGHUnchecked return value in SDM firmware for Intel(R) Stratix 10 and Intel(R) Agilex 7 FPGAs before version 23.3 may allow an authenticated usEPSS 0.3%CVE-2026-40060HIGHBIG-IP Advanced WAF and ASM vulnerabilityEPSS 0.3%CVE-2025-62791MEDIUMWazuh vulnerable to NULL pointer dereference in DecodeCiscatEPSS 0.3%CVE-2023-3013MEDIUMUnchecked Return Value in gpac/gpacEPSS 0.3%CVE-2021-0107MEDIUMUnchecked return value in the firmware for some Intel(R) Processors may allow a privileged user to potentially enable escalation of privilegEPSS 0.3%CVE-2024-45775MEDIUMGrub2: commands/extcmd: missing check for failed allocationEPSS 0.3%CVE-2024-12650MEDIUMWago: Vulnerability in libwagosnmpEPSS 0.3%CVE-2026-62909HIGH.NET Elevation of Privilege VulnerabilityEPSS 0.3%CVE-2025-54571MEDIUMModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code DisclosureEPSS 0.3%CVE-2025-11839MEDIUMGNU Binutils prdbg.c tg_tag_type return valueEPSS 0.3%CVE-2021-3659A NULL pointer dereference flaw was found in the Linux kernel’s IEEE 802.15.4 wireless networking subsystem in the way the user closes the LEPSS 0.3%CVE-2026-47245MEDIUMMyBB: Buddy list corruptionEPSS 0.3%CVE-2023-23003MEDIUMIn the Linux kernel before 5.16, tools/perf/util/expr.c lacks a check for the hashmap__new return value.EPSS 0.3%CVE-2026-61857MEDIUMImageMagick before 7.1.2-26 Heap Use-After-Free via XMPEPSS 0.3%CVE-2021-0155MEDIUMUnchecked return value in the BIOS firmware for some Intel(R) Processors may allow a privileged user to potentially enable information disclEPSS 0.3%