Fallos del 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 que valores fora dos limites sejam usados. Isso pode causar leitura ou escrita de memória inválida, levando a crash, vazamento de dados ou execução de código arbitrário.

Ejemplo

Uma aplicação recebe um ID de usuário via parâmetro HTTP e o usa diretamente como índice em um array de sessões sem verificar se está dentro dos limites. Um atacante envia um índice negativo ou maior que o tamanho do array, acessando memória adjacente e roubando dados de outras sessões.

Cómo mitigar

Sempre validar que o índice está entre 0 e (tamanho_do_array - 1) antes de qualquer acesso. Use funções de linguagem que impõem limites automaticamente (como iteradores) ou implemente verificações explícitas com exceções/retorno de erro.

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%