CWE-407: Inefficient Algorithmic Complexity

What is CWE-407?

CWE-407 is Inefficient Algorithmic Complexity. The flaw arises when 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. The database currently holds 187 vulnerabilities mapped to CWE-407 and none of them are in the CISA Known Exploited Vulnerabilities catalog.

Analyzing data...

OWASP Top 10 Rank-
Related CVES (365 days)187
AbstractionClass
Likelihood of exploitLow

Vulnerabilities mapped to CWE-407

187 vulnerabilities3017% increase year over year

No data

No vulnerability data in CISA KEV for CWE-407

Official definition

ByMitre CWE

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.

Characteristics

Alternate terms

  • Quadratic Complexity — Used when the algorithmic complexity is related to the square of the number of inputs (N^2)

Modes of introduction

  • Architecture and Design
  • Implementation

Common consequences

ImpactScopeExplanation
DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Resource Consumption (Other)AvailabilityThe typical consequence is CPU consumption, but memory consumption and consumption of other resources can also occur.

Representative vulnerabilities

Below are representative vulnerabilities related to this CWE, prioritized by severity.

Sources (2)

CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.

Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.