Falhas do tipo CWE-125

5.104 resultados

Leitura fora dos limites de memória

Ocorre quando o código tenta ler dados de uma posição de memória fora do intervalo alocado para um buffer ou array. O programa não valida o índice ou tamanho antes de acessar, causando leitura de dados inválidos, corrupção de informações ou revelação de dados sensíveis da memória adjacente.

Exemplo

Um processador de imagem PNG lê 4 bytes de um buffer de 2 bytes para validar uma assinatura, ou uma função copia uma string sem verificar se o índice fornecido pelo usuário extrapola o tamanho real do array. Em ambos os casos, dados fora do escopo pretendido são lidos.

Como mitigar

Sempre validar índices e comprimentos contra os limites reais do buffer antes de qualquer leitura. Usar funções seguras (ex: `strncpy` em vez de `strcpy`, bounds-checking em loops) e implementar testes com entradas extremas (size zero, índices negativos, valores muito grandes).

CVE-2023-23399HIGHMicrosoft Excel Remote Code Execution VulnerabilityEPSS 2.5%CVE-2017-12894CRITICALSeveral protocol parsers in tcpdump before 4.9.2 could cause a buffer over-read in addrtoname.c:lookup_bytestring().EPSS 2.5%CVE-2017-12993CRITICALThe Juniper protocols parser in tcpdump before 4.9.2 has a buffer over-read in print-juniper.c, several functions.EPSS 2.5%CVE-2017-13002CRITICALThe AODV parser in tcpdump before 4.9.2 has a buffer over-read in print-aodv.c:aodv_extension().EPSS 2.5%CVE-2017-13013CRITICALThe ARP parser in tcpdump before 4.9.2 has a buffer over-read in print-arp.c, several functions.EPSS 2.5%CVE-2017-12994CRITICALThe BGP parser in tcpdump before 4.9.2 has a buffer over-read in print-bgp.c:bgp_attr_print().EPSS 2.5%CVE-2017-13014CRITICALThe White Board protocol parser in tcpdump before 4.9.2 has a buffer over-read in print-wb.c:wb_prep(), several functions.EPSS 2.5%CVE-2017-12897CRITICALThe ISO CLNS parser in tcpdump before 4.9.2 has a buffer over-read in print-isoclns.c:isoclns_print().EPSS 2.5%CVE-2017-13016CRITICALThe ISO ES-IS parser in tcpdump before 4.9.2 has a buffer over-read in print-isoclns.c:esis_print().EPSS 2.5%CVE-2017-13006CRITICALThe L2TP parser in tcpdump before 4.9.2 has a buffer over-read in print-l2tp.c, several functions.EPSS 2.5%CVE-2017-12898CRITICALThe NFS parser in tcpdump before 4.9.2 has a buffer over-read in print-nfs.c:interp_reply().EPSS 2.5%CVE-2019-11823HIGHCRLF injection vulnerability in Network Center in Synology Router Manager (SRM) before 1.2.3-8017-2 allows remote attackers to cause a deniaEPSS 2.5%CVE-2018-10482This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Reader 9.0.0.29935. User iEPSS 2.5%CVE-2018-10492This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Reader 9.0.0.29935. User iEPSS 2.5%CVE-2018-10479This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Reader 9.0.0.29935. User iEPSS 2.5%CVE-2018-9976This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Reader 9.0.0.29935. User iEPSS 2.5%CVE-2018-10480This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Reader 9.0.0.29935. User iEPSS 2.5%CVE-2018-10493This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Reader 9.0.1.1049. User inEPSS 2.5%CVE-2018-10476This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Reader 9.0.0.29935. User iEPSS 2.5%CVE-2018-9984This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Reader 9.0.0.29935. User iEPSS 2.5%