Fallos del tipo CWE-789

338 resultados

Alocação de memória descontrolada

Ocorre quando a aplicação aloca memória sem validar adequadamente o tamanho solicitado, permitindo que um atacante force alocações massivas ou excessivas. Isso leva a consumo desenfreado de RAM, causando negação de serviço (DoS), travamento ou crash da aplicação.

Ejemplo

Um servidor web recebe um parâmetro 'tamanho' do cliente e aloca um buffer: `char *buf = malloc(tamanho_enviado)`. Se um atacante enviar um valor gigantesco (tipo 2GB), a memória se esgota e a aplicação cai. Outro cenário: um parser de arquivo aceita um campo 'quantidade de elementos' sem limite, aloca array gigante e consome toda a RAM disponível.

Cómo mitigar

Valide e estabeleça limites máximos realistas para alocações antes de executá-las. Use tipos com tamanho fixo quando possível, implemente timeouts de alocação e monitore consumo de memória em runtime. Se o tamanho vem de entrada do usuário, rejeite valores suspeitos ou use alocadores com caps configurados.

CVE-2024-40680MEDIUMIBM MQ denial of serviceEPSS 0.2%CVE-2026-66485MEDIUMUncontrolled Memory Allocation in GNU cpioEPSS 0.2%CVE-2026-53428MEDIUMUnbounded memory allocation in highlight_lines range expansion in mdexEPSS 0.2%CVE-2026-29776LOWFreeRDP has an Integer Underflow in update_read_cache_bitmap_order Function of FreeRDP's Core LibraryEPSS 0.2%CVE-2026-105613MEDIUMPostgreSQL Anonymizer: Unbounded memory allocation (DoS) in range-based dummy functionsEPSS 0.2%CVE-2026-105614MEDIUMPostgreSQL Anonymizer: Unbounded image-decode memory allocation (DoS) in anon.image_blur()EPSS 0.2%CVE-2026-26931MEDIUMMemory Allocation with Excessive Size Value in Metricbeat Leading to Denial of ServiceEPSS 0.2%CVE-2026-112283MEDIUMlibbluray through 1.5.1 Uncontrolled Memory Allocation via _parse_extent_start_pointsEPSS 0.2%CVE-2026-42146MEDIUMCImg Library: Uncontrolled memory allocation via nb_colors field in _load_bmpEPSS 0.2%CVE-2026-112048MEDIUMlibspatialite through 5.1.0 Uncontrolled Memory Allocation via ParseWkbPolygon Ring CountEPSS 0.2%CVE-2026-55782LOWNanaZip: Unbounded memory allocation (DoS) in NanaZip WebAssembly parser via attacker-controlled section/name length fieldsEPSS 0.2%CVE-2022-20845MEDIUMCisco Network Convergence System 4000 Series TL1 Denial of Service VulnerabilityEPSS 0.2%CVE-2026-2456MEDIUMDenial of Service via Unbounded Memory Allocation in Integration ActionsEPSS 0.2%CVE-2026-110258MEDIUMOW2 ASM 3.0 before 9.11 Excessive Memory Allocation via Multiple RET InstructionsEPSS 0.2%CVE-2026-110257MEDIUMOW2 ASM 5.0 before 9.11 Excessive Memory Allocation via BootstrapMethods AttributeEPSS 0.2%CVE-2026-86776MEDIUMKeePass 2.35 through 2.61.1 Memory Exhaustion via KDBX Header Field SizeEPSS 0.2%CVE-2026-62254MEDIUMLibreDWG: excessive class-decoding reallocation in R13-R2000 DWG parsingEPSS 0.2%CVE-2026-115394MEDIUMGhidra through 12.2 Denial of Service via BinaryField Memory AllocationEPSS 0.2%CVE-2026-113604MEDIUMGhidra 10.2 through 12.1.4 Denial of Service via ELF Loader Extended Header CountsEPSS 0.2%CVE-2026-83530MEDIUMUncontrolled Memory Allocation in cel-goEPSS 0.2%