Falhas do tipo CWE-129

323 resultados

Validação inadequada de índice de array

Ocorre quando o código não valida corretamente um índice antes de acessar um array, permitindo leitura ou escrita fora dos limites da estrutura. Um atacante pode explorar isso para ler dados sensíveis da memória adjacente, sobrescrever dados críticos ou executar código arbitrário.

Exemplo

Um aplicativo web recebe um ID de usuário vindo de um parâmetro GET e o usa diretamente como índice em um array de usuários sem verificar se está dentro do tamanho válido. Um atacante fornece um índice negativo ou muito grande, acessando registros de outros usuários ou corrompendo estruturas internas.

Como mitigar

Sempre validar o índice antes do acesso: verificar se está >= 0 e < tamanho_do_array. Use bibliotecas que oferecem acesso seguro a coleções (como listas tipadas em linguagens modernas) e implemente testes de boundary para casos extremos durante o desenvolvimento.

CVE-2023-21636MEDIUMImproper Validation of Array Index in LinuxEPSS 0.1%CVE-2026-82327MEDIUMLibsolv: libsolv: out-of-bounds write in repo_write() via unvalidated directory id from vertical/paged .solv filelist dataEPSS 0.1%CVE-2023-31309MEDIUMImproper validation in Power Management Firmware (PMFW) may allow an attacker with privileges to pass malformed workload arguments when expoEPSS 0.1%CVE-2024-49834HIGHImproper Validation of Array Index in CameraEPSS 0.1%CVE-2026-44310MEDIUMgitsign --verify panics on empty-certificate PKCS7 and exits 0, bypassing exit-code callersEPSS 0.1%CVE-2026-17097HIGHPower System Improper ValidationEPSS 0.1%CVE-2023-43535HIGHImproper Validation of Array Index in DisplayEPSS 0.1%CVE-2024-45576HIGHImproper Validation of Array Index in Camera DriverEPSS 0.1%CVE-2024-45574HIGHImproper Validation of Array Index in Camera DriverEPSS 0.1%CVE-2024-45578HIGHImproper Validation of Array Index in Camera DriverEPSS 0.1%CVE-2023-24850HIGHImproper Validation of Array Index in HLOSEPSS 0.1%CVE-2024-49843HIGHImproper Validation of Array Index in Graphics_LinuxEPSS 0.1%CVE-2024-49837HIGHImproper Validation of Array Index in Automotive OS PlatformEPSS 0.1%CVE-2023-33111MEDIUMImproper Validation of Array Index in AudioEPSS 0.1%CVE-2025-21423HIGHImproper Validation of Array Index in DisplayEPSS 0.1%CVE-2025-21447HIGHImproper Validation of Array Index in Computer VisionEPSS 0.1%CVE-2026-0799HIGHOOBR and OOBW in libpcap before 1.10.7EPSS 0.1%CVE-2026-6840MEDIUMMissing bounds validation for operator could allow out of range operator-code lookup during model loading Affected version is prior to commEPSS 0.1%CVE-2024-33044HIGHImproper Validation of Array Index in HypervisorEPSS 0.1%CVE-2024-49833HIGHImproper Validation of Array Index in CameraEPSS 0.1%