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-2022-25711MEDIUMMemory corruption in camera due to improper validation of array index in Snapdragon Auto, Snapdragon Compute, Snapdragon Consumer IOT, SnapdEPSS 0.1%CVE-2026-88052HIGHTesseract: Heap out-of-bounds write in UNICHARSET::load_via_fgets via count/insert desynchronizationEPSS 0.1%CVE-2023-31306LOWImproper validation of an array index in the AMD graphics driver software could allow an attacker to pass malformed arguments to the dynamicEPSS 0.1%CVE-2026-45359MEDIUMImageMagick: Out-of-Bounds Read in connected components when the user supplies an invalid keep-top defineEPSS 0.1%CVE-2024-53014HIGHImproper Validation of Array Index in AudioEPSS 0.1%CVE-2024-49836HIGHImproper Validation of Array Index in CameraEPSS 0.1%CVE-2026-45624MEDIUMImageMagick: Heap Buffer Over-Read of a 4 bytes in distort operation.EPSS 0.1%CVE-2022-33274HIGHImproper validation of array index in Android CoreEPSS 0.1%CVE-2022-33302MEDIUMImproper validation of array index in User Identity ModuleEPSS 0.1%CVE-2022-33275HIGHImproper validation of array index in WLAN HALEPSS 0.1%CVE-2023-28565HIGHImproper Validation of Array Index in WLAN HALEPSS 0.1%CVE-2023-28557HIGHImproper Validation of Array Index in WLAN HALEPSS 0.1%CVE-2022-40534HIGHImproper Validation of Array Index in AudioEPSS 0.1%CVE-2023-28558HIGHImproper Validation of Array Index in WLAN HALEPSS 0.1%CVE-2023-28567HIGHImproper Validation of Array Index in WLAN HALEPSS 0.1%CVE-2023-28548HIGHImproper Validation of Array Index in WLAN HALEPSS 0.1%CVE-2023-28573HIGHImproper Validation of Array Index in WLAN HALEPSS 0.1%CVE-2024-51517MEDIUMVulnerability of improper memory access in the phone service module Impact: Successful exploitation of this vulnerability may affect availabEPSS 0.1%CVE-2022-33281MEDIUMImproper validation of array index in computer vision.EPSS 0.1%CVE-2023-21636MEDIUMImproper Validation of Array Index in LinuxEPSS 0.1%