Weaknesses of type CWE-126

526 results

Leitura além dos limites de buffer na pilha

Ocorre quando o código lê dados além do tamanho alocado de um buffer armazenado na pilha (stack). O programa acessa memória que não lhe pertence, podendo expor dados sensíveis como variáveis locais, endereços de retorno ou informações de contexto. Diferente de um buffer overflow, aqui não há escrita destrutiva, mas a leitura não autorizada compromete confidencialidade.

Example

Uma função copia uma string de entrada para um buffer fixo de 64 bytes, mas depois lê 128 bytes desse buffer para enviá-lo a um log remoto. O atacante fornece uma string curta, mas o programa vaza dados armazenados logo após o buffer na pilha (variáveis locais de outras funções, ponteiros).

How to mitigate

Use funções seguras com limite de tamanho (como snprintf em vez de sprintf, strncpy em vez de strcpy). Sempre rastreie e valide o comprimento real dos dados antes de ler. Ative proteções de compilação como stack canaries e AddressSanitizer em desenvolvimento para detectar acessos fora dos limites.

CVE-2024-31080HIGHXorg-x11-server: heap buffer overread/data leakage in procxigetselectedeventsEPSS 0.5%CVE-2025-24068MEDIUMWindows Storage Management Provider Information Disclosure VulnerabilityEPSS 0.5%CVE-2024-9029HIGHFreeimage: heap buffer overflow in tiff_read_iptc_profileEPSS 0.5%CVE-2026-58013MEDIUMGlib: buffer over-read in glib/giochannel.c via "g_io_channel_read_line_backend"EPSS 0.5%CVE-2026-78516MEDIUMWindows Storage Information Disclosure VulnerabilityEPSS 0.5%CVE-2025-53736MEDIUMMicrosoft Word Information Disclosure VulnerabilityEPSS 0.5%CVE-2023-21697MEDIUMWindows Internet Storage Name Service (iSNS) Server Information Disclosure VulnerabilityEPSS 0.5%CVE-2026-58010MEDIUMGlib: buffer over-read in glib/gvariant-serialiser.c via gvs_tuple_is_normal()EPSS 0.5%CVE-2026-58012MEDIUMGlib: buffer over-read in g_regex_replace() via glib/gregex.c:string_append() and g_utf8_next_char()EPSS 0.5%CVE-2026-55970MEDIUMApache Thrift: C++ heap out-of-bounds read in THeaderTransport::readHeaderFormat()EPSS 0.5%CVE-2023-33098HIGHBuffer Over-read in WLAN FirmwareEPSS 0.5%CVE-2023-33081HIGHBuffer over-read in WLAN FirmwareEPSS 0.5%CVE-2023-33097HIGHBuffer Over-read in WLAN FirmwareEPSS 0.5%CVE-2026-53587HIGHlibgit2 - Unauthenticated network-reachable heap out-of-bounds read in transports/smart_pkt.c:set_dataEPSS 0.5%CVE-2024-3077MEDIUMBluetooth: integer underflow in gatt_find_info_rspEPSS 0.5%CVE-2026-55036HIGHMicrosoft Excel Remote Code Execution VulnerabilityEPSS 0.5%CVE-2025-47973HIGHMicrosoft Virtual Hard Disk Elevation of Privilege VulnerabilityEPSS 0.5%CVE-2025-47971HIGHMicrosoft Virtual Hard Disk Elevation of Privilege VulnerabilityEPSS 0.5%CVE-2024-52877HIGHAn issue was discovered in Insyde InsydeH2O kernel 5.2 before version 05.29.50, kernel 5.3 before version 05.38.50, kernel 5.4 before versioEPSS 0.5%CVE-2024-52878HIGHAn issue was discovered in Insyde InsydeH2O kernel 5.2 before version 05.29.50, kernel 5.3 before version 05.38.50, kernel 5.4 before versioEPSS 0.5%