Falhas do tipo CWE-835

534 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-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-97705HIGHMoleculer: Unauthenticated Denial of Service via negative length field in the TCP transporter packet parserEPSS 0.4%CVE-2024-23352HIGHLoop with Unreachable Exit Condition (`Infinite Loop`) in Multi Mode Call ProcessorEPSS 0.3%CVE-2026-78132HIGHstrongSwan 5.1.3 through 6.0.7 has an infinite loop in the x509 plugin's attribute certificate parser for ietfAttrSyntax.EPSS 0.3%CVE-2026-96642HIGHPillow: TarIO negative size field causes infinite CPU-spin loopEPSS 0.3%CVE-2026-123273HIGHImageMagick before 7.1.2-35 and 6.9.13-60 Infinite Loop via SVG DecoderEPSS 0.3%CVE-2026-41680HIGHMarked: OOM Denial of Service via Infinite Recursion in marked TokenizerEPSS 0.3%CVE-2026-53180HIGHtimers/migration: Fix livelock in tmigr_handle_remote_up()EPSS 0.3%CVE-2025-63829MEDIUMeProsima Fast-DDS v3.3 and before has an infinite loop vulnerability caused by integer overflow in the Time_t:: fraction() function.EPSS 0.3%CVE-2026-61633LOWNanoMQ: Infinite Loop in UNSUBSCRIBE Decoder Leading to Remote DoSEPSS 0.3%CVE-2026-113792MEDIUMpypdf: Possible infinite loop in PdfWriter.find_outline_itemEPSS 0.3%CVE-2025-41074MEDIUMMultiple vulnerabilities in LimesurveyEPSS 0.3%CVE-2025-41075MEDIUMMultiple vulnerabilities in LimesurveyEPSS 0.3%CVE-2026-104266MEDIUMtinytag: Infinite loop when parsing certain M4A files containing invalid atomsEPSS 0.3%CVE-2026-94654HIGHApache Thrift: Python `TNonblockingServer` busy-loops and stops selecting all fds after an 8192-byte-boundary frameEPSS 0.3%CVE-2026-39934MEDIUMGrowth Experiments ReassignMenteesJob runs as an infinite loopEPSS 0.3%CVE-2026-85476HIGHApache Thrift: c_glib `read_all` spins when the underlying read returns 0EPSS 0.3%CVE-2026-54886MEDIUMSSH SFTP server denial of service via extended channel data infinite loopEPSS 0.3%CVE-2026-67213HIGHnanoid before 5.1.6 Infinite Loop via Zero Size in customAlphabet and customRandomEPSS 0.3%