Falhas do tipo CWE-835

424 resultados

Loop infinito com condição de saída inalcançável

O programa entra em um loop cuja condição de parada nunca é satisfeita, fazendo-o executar indefinidamente. Isso consome recursos (CPU, memória) sem progresso, causando travamento, negação de serviço ou comportamento impredizível da aplicação.

Exemplo

Um validador de entrada que loop enquanto o valor não é válido, mas nunca atualiza a variável de controle; ou uma fila de processamento que tenta desempilhar itens, mas a condição de parada verifica uma variável que nunca muda. O servidor fica preso processando eternamente.

Como mitigar

Revisão de lógica: garantir que toda variável usada na condição de saída seja modificada dentro do loop. Implementar timeouts e limites de iteração como salvaguarda. Testes com entrada válida, inválida e edge cases para detectar loops travados antes do deploy.

CVE-2026-41150MEDIUMMermaid Gantt Charts are vulnerable to an Infinite Loop DoSEPSS 0.4%CVE-2026-85730HIGHsmol-toml: Denial of Service via malformed TOML documentsEPSS 0.4%CVE-2025-27497HIGHOpenDJ Denial of Service (Dos) using alias loopEPSS 0.4%CVE-2026-59933HIGHPhpSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustionEPSS 0.4%CVE-2026-13401HIGHXML::Bare versions through 0.53 for Perl will hang in an infinite loop when parsing malformed attributesEPSS 0.4%CVE-2026-8318MEDIUMVectifyAI PageIndex PDF Table of Contents page_index.py toc_transformer infinite loopEPSS 0.4%CVE-2025-29776HIGHAzle calling `setTimer` causes infinite loop of timersEPSS 0.4%CVE-2025-0290MEDIUMLoop with Unreachable Exit Condition ('Infinite Loop') in GitLabEPSS 0.4%CVE-2021-20257An infinite loop flaw was found in the e1000 NIC emulator of the QEMU. This issue occurs while processing transmits (tx) descriptors in procEPSS 0.4%CVE-2024-6614MEDIUMIncorrect listing of stack framesEPSS 0.4%CVE-2025-55118HIGHBMC Control-M/Agent memory corruption in SSL/TLS communicationEPSS 0.4%CVE-2026-32256HIGHmusic-metadata has an infinite loop vulnerability in ASF parserEPSS 0.4%CVE-2026-59877MEDIUMprotobufjs: Denial of Service via infinite loop in .proto option parsingEPSS 0.4%CVE-2025-66252HIGHInfinite Loop Denial of Service via Failed File DeletionEPSS 0.4%CVE-2024-58261LOWThe sequoia-openpgp crate 1.13.0 before 1.21.0 for Rust allows an infinite loop of "Reading a cert: Invalid operation: Not a Key packet" mesEPSS 0.4%CVE-2026-7263MEDIUMDoS attack via DOMNode::C14N()EPSS 0.4%CVE-2023-36464MEDIUMInfinite Loop when a comment isn't followed by a character in pypdfEPSS 0.4%CVE-2024-6061MEDIUMGPAC MP4Box isoffin_read.c isoffin_process infinite loopEPSS 0.4%CVE-2026-39934MEDIUMGrowth Experiments ReassignMenteesJob runs as an infinite loopEPSS 0.3%CVE-2026-19484HIGH@fastify/busboy vulnerable to Denial of Service via oversized multipart boundaryEPSS 0.3%