Weaknesses of type CWE-823

100 results

Uso de offset de ponteiro fora do intervalo válido

O código calcula ou usa um deslocamento (offset) para um ponteiro que aponta para além dos limites da memória alocada ou válida para aquele objeto. Isso permite leitura ou escrita em áreas de memória não pretendidas, causando corrupção de dados, vazamento de informações ou execução de código arbitrário.

Example

Uma função recebe um índice do usuário e o usa diretamente como offset em um array sem validar se está dentro dos limites: `int valor = array[indice_usuario];` Se indice_usuario for negativo ou maior que o tamanho do array, acessa memória inválida.

How to mitigate

Sempre validar índices e offsets antes de usá-los em aritmética de ponteiros: confirmar que estão dentro de [0, tamanho]. Use funções seguras de cópia de memória (como strncpy ao invés de strcpy) e considere usar linguagens com verificação de limites em tempo de execução ou análise estática para detectar offsets suspeitos.

CVE-2016-2161In Apache HTTP Server versions 2.4.0 to 2.4.23, malicious input to mod_auth_digest can cause the server to crash, and each instance continueEPSS 21.0%CVE-2020-6112HIGHAn exploitable code execution vulnerability exists in the JPEG2000 Stripe Decoding functionality of Nitro Software, Inc.’s Nitro Pro 13.13.2EPSS 17.1%CVE-2020-27009HIGHA vulnerability has been identified in APOGEE PXC Compact (BACnet) (All versions < V3.5.5), APOGEE PXC Compact (P2 Ethernet) (All versions <EPSS 7.2%CVE-2023-46724HIGHSQUID-2023:4 Denial of Service in SSL Certificate validationEPSS 4.0%CVE-2020-13573HIGHA denial-of-service vulnerability exists in the Ethernet/IP server functionality of Rockwell Automation RSLinx Classic 2.57.00.14 CPR 9 SR 3EPSS 3.4%CVE-2022-0685HIGHUse of Out-of-range Pointer Offset in vim/vimEPSS 1.7%CVE-2022-0729HIGHUse of Out-of-range Pointer Offset in vim/vimEPSS 1.6%CVE-2022-0554HIGHUse of Out-of-range Pointer Offset in vim/vimEPSS 1.6%CVE-2022-46377MEDIUMAn out-of-bounds read vulnerability exists in the PORT command parameter extraction functionality of Weston Embedded uC-FTPs v 1.98.00. A spEPSS 1.5%CVE-2022-1420MEDIUMUse of Out-of-range Pointer Offset in vim/vimEPSS 1.5%CVE-2022-46378MEDIUMAn out-of-bounds read vulnerability exists in the PORT command parameter extraction functionality of Weston Embedded uC-FTPs v 1.98.00. A spEPSS 1.4%CVE-2021-3889HIGHUse of Out-of-range Pointer Offset in bfabiszewski/libmobiEPSS 1.2%CVE-2021-3888HIGHUse of Out-of-range Pointer Offset in bfabiszewski/libmobiEPSS 1.2%CVE-2022-32142HIGHCODESYS runtime system prone to denial of service due to use of out of range pointerEPSS 1.0%CVE-2026-42946HIGHNGINX ngx_http_scgi_module and ngx_http_uwsgi_module vulnerabilityEPSS 0.9%CVE-2022-0614HIGHUse of Out-of-range Pointer Offset in mruby/mrubyEPSS 0.9%CVE-2021-34595HIGHCODESYS V2 runtime: out-of-bounds read or write access may result in denial-of-serviceEPSS 0.9%CVE-2023-33106HIGHUse of Out-of-range Pointer Offset in GraphicsEPSS 0.8%KEVCVE-2017-20211HIGHUCanCode E-XD++ Visualization Enterprise Suite Untrusted Pointer Dereference RCEEPSS 0.7%CVE-2026-4693HIGHIncorrect boundary conditions in the Audio/Video: Playback componentEPSS 0.7%