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-2026-21507HIGHiccDEV is Vulnerable to Denial of Service via Infinite Loop in CalcProfileID()EPSS 0.4%CVE-2026-32889MEDIUMtinytag: Denial of Service via non-terminating SYLT frame parsing loopEPSS 0.4%CVE-2026-59874HIGHnode-tar: Negative tar entry size causes infinite loop in archive replaceEPSS 0.4%CVE-2022-33238HIGHTransient DOS due to loop with unreachable exit condition in WLAN while processing an incoming FTM frames. in Snapdragon Auto, Snapdragon CoEPSS 0.4%CVE-2026-102253HIGHiperf3 < 3.22 UDP Receive Worker Infinite Loop DoSEPSS 0.4%CVE-2025-71329HIGHimage-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF ParserEPSS 0.4%CVE-2025-71330HIGHimage-size 2.0.2 Denial of Service via Malformed ICNS Image ParsingEPSS 0.4%CVE-2026-107577HIGHLoop with Unreachable Exit Condition ('Infinite Loop') in hMailServerEPSS 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-8798HIGHNative entropy source retries the CPU entropy instructions without limitEPSS 0.4%CVE-2026-16551MEDIUMDenial-of-Service in OpenCanary's MongoDB moduleEPSS 0.4%CVE-2026-24802MEDIUMBuffer Overflow Vulnerability in briandilley/jsonrpc4jEPSS 0.4%CVE-2025-21850CRITICALnvmet: Fix crash when a namespace is disabledEPSS 0.4%CVE-2023-52726MEDIUMOpen Networking Foundation SD-RAN ONOS onos-ric-sdk-go 0.8.12 allows infinite repetition of the processing of an error (in the Subscribe funEPSS 0.4%CVE-2026-87082HIGHNet::IDN::Punycode versions before 2.590 for Perl hang, crash or return a wrong label via unvalidated malformed UTF-8 in encode_punycodeEPSS 0.4%CVE-2026-111074HIGHJITServer: Pre-authentication remote Denial of Service via integer overflow infinite loop in MessageBuffer::computeRequiredCapacity()EPSS 0.4%CVE-2026-106567MEDIUMImageMagick: Infinite Loop in PSD decoder on 32-bit buildsEPSS 0.4%CVE-2026-106565MEDIUMImageMagick: Infinite Loop in bzip2 compressed images.EPSS 0.4%CVE-2026-32256HIGHmusic-metadata has an infinite loop vulnerability in ASF parserEPSS 0.4%CVE-2026-29975HIGHlwjson 1.8.1 contains an improper input validation vulnerability in the streaming JSON parser (lwjson_stream.c). The end-of-string detectionEPSS 0.4%