CWE-407: Inefficient Algorithmic Complexity
CWE版本: 4.18
更新日期: 2025-09-09
弱点描述
An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.
常见后果
影响范围: Availability
技术影响: DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other)
说明: The typical consequence is CPU consumption, but memory consumption and consumption of other resources can also occur.
观察示例
参考: CVE-2021-32617
C++ library for image metadata has "quadratic complexity" issue with unnecessarily repetitive parsing each time an invalid character is encountered
参考: CVE-2020-10735
Python has "quadratic complexity" issue when converting string to int with many digits in unexpected bases
参考: CVE-2020-5243
server allows ReDOS with crafted User-Agent strings, due to overlapping capture groups that cause excessive backtracking.
参考: CVE-2014-1474
Perl-based email address parser has "quadratic complexity" issue via a string that does not contain a valid address
参考: CVE-2003-0244
CPU consumption via inputs that cause many hash table collisions.
参考: CVE-2003-0364
CPU consumption via inputs that cause many hash table collisions.
参考: CVE-2002-1203
Product performs unnecessary processing before dropping an invalid packet.
参考: CVE-2001-1501
CPU and memory consumption using many wildcards.
参考: CVE-2004-2527
Product allows attackers to cause multiple copies of a program to be loaded more quickly than the program can detect that other copies are running, then exit. This type of error should probably have its own category, where teardown takes more time than initialization.
参考: CVE-2006-6931
Network monitoring system allows remote attackers to cause a denial of service (CPU consumption and detection outage) via crafted network traffic, aka a "backtracking attack."
参考: CVE-2006-3380
Wiki allows remote attackers to cause a denial of service (CPU consumption) by performing a diff between large, crafted pages that trigger the worst case algorithmic complexity.
参考: CVE-2006-3379
Wiki allows remote attackers to cause a denial of service (CPU consumption) by performing a diff between large, crafted pages that trigger the worst case algorithmic complexity.
参考: CVE-2005-2506
OS allows attackers to cause a denial of service (CPU consumption) via crafted Gregorian dates.
参考: CVE-2005-1792
Memory leak by performing actions faster than the software can clear them.
引入模式
| 阶段 | 说明 |
|---|---|
| Architecture and Design | - |
| Implementation | - |
适用平台
编程语言
分类映射
| 分类名称 | 条目ID | 条目名称 | 映射适配度 |
|---|---|---|---|
| PLOVER | - | Algorithmic Complexity | - |