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-2024-56598HIGHjfs: array-index-out-of-bounds fix in dtReadFirstEPSS 0.3%CVE-2025-40114HIGHiio: light: Add check for array bounds in veml6075_read_int_time_msEPSS 0.3%CVE-2023-52805HIGHjfs: fix array-index-out-of-bounds in diAllocEPSS 0.3%CVE-2024-53214HIGHvfio/pci: Properly hide first-in-list PCIe extended capabilityEPSS 0.3%CVE-2022-49186HIGHclk: visconti: prevent array overflow in visconti_clk_register_gates()EPSS 0.2%CVE-2023-52601HIGHjfs: fix array-index-out-of-bounds in dbAdjTreeEPSS 0.2%CVE-2026-93840MEDIUMvLLM before 0.29.0 Cross-Request Logits Corruption via allowed_token_idsEPSS 0.2%CVE-2023-51455MEDIUMA Improper Validation of Array Index issue affecting the v2_sdk_service running on a set of DJI drone devices on the port 10000 could allow EPSS 0.2%CVE-2026-93841MEDIUMvLLM through 0.29.0 Adjacent-Request Sampler State Corruption via Unvalidated Prompt Token IDsEPSS 0.2%CVE-2026-26933MEDIUMImproper Validation of Array Index in Packetbeat Leading to Denial of ServiceEPSS 0.2%CVE-2024-53228HIGHriscv: kvm: Fix out-of-bounds array accessEPSS 0.2%CVE-2024-53156HIGHwifi: ath9k: add range check for conn_rsp_epid in htc_connect_service()EPSS 0.2%CVE-2024-38562HIGHwifi: nl80211: Avoid address calculations via out of bounds array indexingEPSS 0.2%CVE-2026-25585HIGHiccDEV vulnerable to OOB in CIccXform3DLut::Apply()EPSS 0.2%CVE-2025-40014HIGHobjtool, spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq()EPSS 0.2%CVE-2025-21680HIGHpktgen: Avoid out-of-bounds access in get_imix_entriesEPSS 0.2%CVE-2026-13212HIGHZephyr virtio driver calls an arbitrary function pointer from an out-of-range used-ring descriptor idEPSS 0.2%CVE-2026-0529MEDIUMImproper Validation of Array Index in Packetbeat Leading to Overflow BuffersEPSS 0.2%CVE-2025-21991HIGHx86/microcode/AMD: Fix out-of-bounds on systems with CPU-less NUMA nodesEPSS 0.2%CVE-2024-26758MEDIUMmd: Don't ignore suspended array in md_check_recovery()EPSS 0.2%