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-2024-56596HIGHjfs: fix array-index-out-of-bounds in jfs_readdirEPSS 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-2023-52601HIGHjfs: fix array-index-out-of-bounds in dbAdjTreeEPSS 0.2%CVE-2022-49186HIGHclk: visconti: prevent array overflow in visconti_clk_register_gates()EPSS 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-2025-40014HIGHobjtool, spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq()EPSS 0.2%CVE-2026-25585HIGHiccDEV vulnerable to OOB in CIccXform3DLut::Apply()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-2022-31603MEDIUMNVIDIA DGX A100 contains a vulnerability in SBIOS in the IpSecDxe, where a user with high privileges and preconditioned IpSecDxe global dataEPSS 0.2%