Weaknesses of type CWE-129

324 results

Validação inadequada de índice de array

Ocorre quando o código não valida corretamente se um índice está dentro dos limites válidos do array antes de acessá-lo. Um atacante pode fornecer um índice fora dos limites (negativo ou maior que o tamanho), causando leitura ou escrita em endereços de memória inválidos, resultando em crash, vazamento de dados ou execução de código arbitrário.

Example

Uma API web recebe um parâmetro 'posição' do usuário e acessa um array sem verificar se a posição é válida. Um atacante envia posição=-1 ou posição=999999, lendo/alterando memória adjacente ao array, ou causando segmentation fault.

How to mitigate

Sempre validar que o índice é >= 0 e < tamanho do array antes de usar. Em linguagens de alto nível, preferir iteradores ou métodos nativos que validam automaticamente; em C/C++, usar bounds checking explícito ou bibliotecas como AddressSanitizer durante testes.

CVE-2023-21650MEDIUMImproper Validation of Array Index in GPS HLOS DriverEPSS 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-2026-44310MEDIUMgitsign --verify panics on empty-certificate PKCS7 and exits 0, bypassing exit-code callersEPSS 0.1%CVE-2024-49834HIGHImproper Validation of Array Index in CameraEPSS 0.1%CVE-2026-17097HIGHPower System Improper ValidationEPSS 0.1%CVE-2023-43535HIGHImproper Validation of Array Index in DisplayEPSS 0.1%CVE-2024-45578HIGHImproper Validation of Array Index in Camera DriverEPSS 0.1%CVE-2024-45576HIGHImproper Validation of Array Index in Camera DriverEPSS 0.1%CVE-2023-24850HIGHImproper Validation of Array Index in HLOSEPSS 0.1%CVE-2024-45574HIGHImproper Validation of Array Index in Camera DriverEPSS 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-2024-33044HIGHImproper Validation of Array Index in HypervisorEPSS 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-49833HIGHImproper Validation of Array Index in CameraEPSS 0.1%