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-2022-25695HIGHMemory corruption in MODEM due to Improper Validation of Array Index while processing GSTK Proactive commands in Snapdragon Auto, SnapdragonEPSS 0.1%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-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-2023-28558HIGHImproper 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-28567HIGHImproper Validation of Array Index in WLAN HALEPSS 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-28573HIGHImproper Validation of Array Index in WLAN HALEPSS 0.1%CVE-2023-28548HIGHImproper Validation of Array Index in WLAN HALEPSS 0.1%CVE-2023-21650MEDIUMImproper Validation of Array Index in GPS HLOS DriverEPSS 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%