Weaknesses of type CWE-118

12 results

Acesso incorreto a recurso indexável (erro de intervalo)

Ocorre quando o código tenta acessar um índice fora dos limites válidos de um array, string ou coleção similar. O programa não valida se o índice está dentro do intervalo permitido antes do acesso, podendo ler dados inválidos, corromper memória ou desencadear exceções não tratadas.

Example

Um código em C que acessa array[user_input] sem verificar se user_input < tamanho_do_array, permitindo leitura de endereços de memória arbitrários. Ou em Python, um script que itera sobre uma lista sem validar se a lista possui elementos naquela posição, causando IndexError ou vazamento de informações sensíveis.

How to mitigate

Sempre validar índices antes do acesso: comparar com length/size do recurso. Use métodos seguros de acesso (ex: get() com valor padrão em Python, ou try-catch em linguagens tipadas). Em C/C++, considere bibliotecas que fazem bounds checking automático ou usar safe_at() em vez de operator[].

CVE-2020-3235HIGHCisco IOS and IOS XE Software Simple Network Management Protocol Denial of Service VulnerabilityEPSS 1.6%CVE-2020-3369HIGHCisco SD-WAN vEdge Routers Denial of Service VulnerabilityEPSS 1.4%CVE-2022-38072MEDIUMAn improper array index validation vulnerability exists in the stl_fix_normal_directions functionality of ADMesh Master Commit 767a105 and vEPSS 1.1%CVE-2024-43524MEDIUMWindows Mobile Broadband Driver Remote Code Execution VulnerabilityEPSS 0.7%CVE-2022-36402MEDIUMThere is an int overflow vulnerability in vmwgfx driverEPSS 0.5%CVE-2023-37923HIGHMultiple arbitrary write vulnerabilities exist in the VCD sorted bsearch functionality of GTKWave 3.3.115. A specially crafted .vcd file canEPSS 0.4%CVE-2023-37921HIGHMultiple arbitrary write vulnerabilities exist in the VCD sorted bsearch functionality of GTKWave 3.3.115. A specially crafted .vcd file canEPSS 0.4%CVE-2023-37922HIGHMultiple arbitrary write vulnerabilities exist in the VCD sorted bsearch functionality of GTKWave 3.3.115. A specially crafted .vcd file canEPSS 0.4%CVE-2026-50367HIGHWindows Sensor Data Service Elevation of Privilege VulnerabilityEPSS 0.2%CVE-2025-54628MEDIUMVulnerability of incomplete verification information in the communication module. Impact: Successful exploitation of this vulnerability may EPSS 0.2%CVE-2023-0201MEDIUMNVIDIA DGX-2 SBIOS contains a vulnerability in Bds, where a user with high privileges can cause a write beyond the bounds of an indexable reEPSS 0.2%CVE-2025-48902MEDIUMVulnerability of uncontrolled system resource applications in the setting module Impact: Successful exploitation of this vulnerability may aEPSS 0.1%