Fallos del tipo CWE-834

36 resultados

Iteração Excessiva

Ocorre quando um loop ou recursão não tem limite adequado de paradas, permitindo que continue executando indefinidamente ou por tempo excessivo. Isso consome CPU, memória ou tempo de resposta, criando uma vulnerabilidade de negação de serviço (DoS) — especialmente se um atacante puder controlar os parâmetros que alimentam a iteração.

Ejemplo

Um servidor recebe um arquivo XML com uma estrutura aninhada profunda (billion laughs attack) ou um loop que processa linhas de um arquivo controlado pelo usuário, sem verificar o número máximo de iterações. Um atacante envia um payload gigante ou infinito, travando a aplicação.

Cómo mitigar

Implemente limites explícitos: máximo de iterações, timeout em loops, limite de tamanho de entrada, e validação de limites antes de processar dados. Use recursão com profundidade máxima definida e considere detectar padrões suspeitos (aninhamento excessivo, repetição anomalamente longa) em tempo de parsing.

CVE-2021-35515Apache Commons Compress 1.6 to 1.20 denial of service vulnerabilityEPSS 11.6%CVE-2023-1993MEDIUMLISP dissector large loop in Wireshark 4.0.0 to 4.0.4 and 3.6.0 to 3.6.12 allows denial of service via packet injection or crafted capture fEPSS 4.1%CVE-2021-31812A carefully crafted PDF file can trigger an infinite loop while loading the fileEPSS 3.1%CVE-2021-27807A carefully crafted PDF file can trigger an infinite loop while loading the fileEPSS 3.0%CVE-2019-3565Legacy C++ Facebook Thrift servers (using cpp instead of cpp2) would not error upon receiving messages with containers of fields of unknown EPSS 2.8%CVE-2019-3558Python Facebook Thrift servers would not error upon receiving messages with containers of fields of unknown type. As a result, malicious cliEPSS 2.0%CVE-2019-3559Java Facebook Thrift servers would not error upon receiving messages with containers of fields of unknown type. As a result, malicious clienEPSS 2.0%CVE-2019-3564Go Facebook Thrift servers would not error upon receiving messages with containers of fields of unknown type. As a result, malicious clientsEPSS 2.0%CVE-2019-3552C++ Facebook Thrift servers (using cpp2) would not error upon receiving messages with containers of fields of unknown type. As a result, malEPSS 2.0%CVE-2021-39204HIGHExcessive CPU usage in PomeriumEPSS 1.7%CVE-2023-26513HIGHApache Sling Resource Merger: Requests to certain paths managed by the Apache Sling Resource Merger can lead to DoSEPSS 1.5%CVE-2018-20805MEDIUMInvariant with $elemMatchEPSS 1.2%CVE-2021-32778MEDIUMExcessive CPU utilization when closing HTTP/2 streamsEPSS 1.2%CVE-2024-4603MEDIUMExcessive time spent checking DSA keys and parametersEPSS 1.1%CVE-2023-0411MEDIUMExcessive loops in multiple dissectors in Wireshark 4.0.0 to 4.0.2 and 3.6.0 to 3.6.10 and allows denial of service via packet injection or EPSS 0.9%CVE-2023-4043MEDIUMParsson DoS when parsing numbers from untrusted sourcesEPSS 0.8%CVE-2024-4227HIGHgSOAP: Vulnerable to specially crafted unencrypted SDC messagesEPSS 0.7%CVE-2023-5632HIGHUnconditionally adding an event to the epoll causes excessive CPU consumptionEPSS 0.7%CVE-2026-64641HIGHNext.js: Denial of Service in App Router using Server ActionsEPSS 0.6%CVE-2025-67726HIGHTornado is Vulnerable to Quadratic DoS via Crafted Multipart ParametersEPSS 0.5%