Falhas do tipo CWE-476

2.329 resultados

Desreferenciação de ponteiro nulo autenticado

O software permite que um usuário autenticado force a desreferenciação de um ponteiro ou referência nula, tipicamente ao passar valores inesperados ou inválidos a uma função. O aplicativo não valida adequadamente a entrada antes de usá-la, causando falha (crash) ou comportamento indefinido que pode levar a negação de serviço.

Exemplo

Um painel administrativo aceita um ID de usuário para deletar, mas não verifica se esse ID existe no banco antes de acessar seus atributos. Um admin autenticado passa ID=0 ou um valor que não corresponde a nenhum registro, e o código tenta acessar propriedades de um objeto nulo, derrubando a aplicação.

Como mitigar

Sempre valide e verifique que referências/ponteiros são válidos antes de desreferenciar: teste se o objeto existe, se o ID é válido e se está dentro do escopo esperado. Use assertions em desenvolvimento e tratamento de exceções robusto em produção para falhas inesperadas.

CVE-2024-37890HIGHDenial of service when handling a request with many HTTP headers in wsEPSS 1.4%CVE-2023-32171MEDIUMUnified Automation UaGateway OPC UA Server Null Pointer Dereference Denial-of-Service VulnerabilityEPSS 1.4%CVE-2023-2617MEDIUMOpenCV wechat_qrcode Module decoded_bit_stream_parser.cpp decodeByteSegment null pointer dereferenceEPSS 1.4%CVE-2021-23180A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary codeEPSS 1.4%CVE-2026-63076HIGHInvalid Pointer Dereference in CMP Server via Crafted protectionAlgEPSS 1.4%CVE-2011-1231HIGHwin32k.sys in the kernel-mode drivers in Microsoft Windows XP SP2 and SP3, Windows Server 2003 SP2, Windows Vista SP1 and SP2, Windows ServeEPSS 1.3%CVE-2022-20746HIGHCisco Firepower Threat Defense Software TCP Proxy Denial of Service VulnerabilityEPSS 1.3%CVE-2019-14878MEDIUMIn the __d2b function of the newlib libc library, all versions prior to 3.3.0 (see newlib/libc/stdlib/mprec.c), Balloc is used to allocate aEPSS 1.3%CVE-2019-14877MEDIUMIn the __mdiff function of the newlib libc library, all versions prior to 3.3.0 (see newlib/libc/stdlib/mprec.c), Balloc is used to allocateEPSS 1.3%CVE-2019-14876MEDIUMIn the __lshift function of the newlib libc library, all versions prior to 3.3.0 (see newlib/libc/stdlib/mprec.c), Balloc is used to allocatEPSS 1.3%CVE-2019-14874MEDIUMIn the __i2b function of the newlib libc library, all versions prior to 3.3.0 (see newlib/libc/stdlib/mprec.c), Balloc is used to allocate aEPSS 1.3%CVE-2021-40750MEDIUMAdobe Bridge NULL Pointer Dereference could lead to Application denial-of-serviceEPSS 1.3%CVE-2009-2516HIGHThe kernel in Microsoft Windows 2000 SP4, XP SP2 and SP3, Server 2003 SP2, Vista Gold and SP1, and Server 2008 Gold does not properly validaEPSS 1.3%CVE-2021-40781MEDIUMAdobe Media Encoder Null Pointer Dereference Application denial-of-serviceEPSS 1.3%CVE-2021-40778MEDIUMAdobe Media Encoder Null Pointer Dereference Application denial-of-serviceEPSS 1.3%CVE-2011-1881HIGHwin32k.sys in the kernel-mode drivers in Microsoft Windows XP SP2 and SP3, Windows Server 2003 SP2, Windows Vista SP1 and SP2, Windows ServeEPSS 1.3%CVE-2021-34737MEDIUMCisco IOS XR Software DHCP Version 4 Server Denial of Service VulnerabilityEPSS 1.3%CVE-2022-43603MEDIUMA denial of service vulnerability exists in the ZfileOutput::close() functionality of OpenImageIO Project OpenImageIO v2.4.4.2. A specially EPSS 1.3%CVE-2022-43593MEDIUMA denial of service vulnerability exists in the DPXOutput::close() functionality of OpenImageIO Project OpenImageIO v2.4.4.2. A specially crEPSS 1.3%CVE-2026-1584HIGHGnutls: gnutls: remote denial of service via crafted clienthello with invalid psk binderEPSS 1.3%