Falhas do tipo CWE-680

112 resultados

Transbordamento de inteiro levando a transbordamento de buffer

Ocorre quando uma operação aritmética com inteiros ultrapassa os limites do tipo (overflow), resultando em um valor menor do que o esperado. Esse valor reduzido é então usado para alocar memória ou indexar um buffer, permitindo escrita fora dos limites. O atacante explora a discrepância entre o cálculo matemático correto e o resultado inteiro para injetar código ou corromper dados.

Exemplo

Um programa recebe o tamanho de um arquivo e calcula espaço para alocação como `tamanho + sizeof(header)`. Se tamanho é INT_MAX, a soma sofre overflow e retorna um valor pequeno; o buffer alocado fica insuficiente, e dados subsequentes são escritos além de seus limites.

Como mitigar

Valide o tamanho de entrada antes de operações aritméticas (garanta que a soma não ultrapasse o máximo do tipo). Use tipos inteiros sem sinal quando apropriado e considere bibliotecas de aritmética segura. Implemente verificações explícitas: `if (tamanho > INT_MAX - sizeof(header)) reject()` antes de alocar.

CVE-2024-24478HIGHAn issue in Wireshark before 4.2.0 allows a remote attacker to cause a denial of service via the packet-bgp.c, dissect_bgp_open(tvbuff_t*tvbEPSS 1.0%CVE-2025-52930HIGHA memory corruption vulnerability exists in the BMPv3 RLE Decoding functionality of the SAIL Image Decoding Library v0.9.8. When decompressiEPSS 0.9%CVE-2020-1895A large heap overflow could occur in Instagram for Android when attempting to upload an image with specially crafted dimensions. This affectEPSS 0.9%CVE-2025-52456HIGHA memory corruption vulnerability exists in the WebP Image Decoding functionality of the SAIL Image Decoding Library v0.9.8. When loading a EPSS 0.9%CVE-2025-32468HIGHA memory corruption vulnerability exists in the BMPv3 Image Decoding functionality of the SAIL Image Decoding Library v0.9.8. When loading aEPSS 0.9%CVE-2021-3321HIGHInteger Underflow in Zephyr in IEEE 802154 Fragment Reassembly Header RemovalEPSS 0.8%CVE-2019-18568HIGHAvira Free Antivirus is proned to a local privilege escalation through the execution of kernel code from a restricted user.EPSS 0.7%CVE-2025-53510HIGHA memory corruption vulnerability exists in the PSD Image Decoding functionality of the SAIL Image Decoding Library v0.9.8. When loading a sEPSS 0.7%CVE-2025-46407HIGHA memory corruption vulnerability exists in the BMPv3 Palette Decoding functionality of the SAIL Image Decoding Library v0.9.8. When loadingEPSS 0.7%CVE-2025-20263HIGHCisco Adaptive Security Appliance Software and Firepower Threat Defense Software Web Services Buffer Overflow Denial of Service VulnerabilityEPSS 0.6%CVE-2025-54952CRITICALAn integer overflow vulnerability in the loading of ExecuTorch models can cause smaller-than-expected memory regions to be allocated, potentEPSS 0.6%CVE-2026-76825HIGHRestrictedPython: Sandbox escape via string.Formatter field resolutionEPSS 0.6%CVE-2026-25541MEDIUMBytes is vulnerable to integer overflow in BytesMut::reserveEPSS 0.6%CVE-2022-29030A vulnerability has been identified in JT2Go (All versions < V13.3.0.3), Teamcenter Visualization V13.3 (All versions < V13.3.0.3), TeamcentEPSS 0.5%CVE-2025-23326HIGHNVIDIA Triton Inference Server for Windows and Linux contains a vulnerability where an attacker could cause an integer overflow through a spEPSS 0.5%CVE-2026-19313CRITICALFireware OS Pre-Authentication Heap Buffer Overflow in iked Allows Remote Code ExecutionEPSS 0.5%CVE-2022-32543HIGHAn integer overflow vulnerability exists in the way ESTsoft Alyac 2.5.8.544 parses OLE files. A specially-crafted OLE file can lead to a heaEPSS 0.5%CVE-2022-29886HIGHAn integer overflow vulnerability exists in the way ESTsoft Alyac 2.5.8.544 parses OLE files. A specially-crafted OLE file can lead to a heaEPSS 0.5%CVE-2024-37305HIGHBuffer overflow in deserialization in oqs-provider EPSS 0.4%CVE-2026-8376HIGHPerl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit buildsEPSS 0.4%