CVE-2021-21328: Vapor - Denial of Service
- Cve: CVE-2021-21328
- Name: Vapor - Denial of Service
- Description: Vapor is a web framework for Swift. In Vapor before version 4.40.1, there is a DoS attack against anyone who Bootstraps a metrics backend for their Vapor app. The following is the attack vector: 1. send unlimited requests against a vapor instance with different paths. this will create unlimited counters and timers, which will eventually drain the system. 2. downstream services might suffer from this attack as well by being spammed with error paths. This has been patched in 4.40.1. The `DefaultResponder` will rewrite any undefined route paths for to `vapor_route_undefined` to avoid unlimited counters.
- Impact: Attackers can exhaust system resources, leading to service unavailability and potential downstream service disruption.
- Remediation: Update to Vapor version 4.40.1 or later.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Epss score: 0.0186
- Epss percentile: 0.79657
- Assignee: [email protected]
- Published at: 2021-02-26T02:15:12Z
- Age in days: 2097
- Modified at: 2026-06-17T03:35:18Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21328
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-400 | Uncontrolled Resource Consumption |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/vapor/vapor/commit/e3aa712508db2854ac0ab905696c65fd88fa7e23 | Patch, Third Party Advisory |
| https://github.com/vapor/vapor/releases/tag/4.40.1 | Release Notes, Third Party Advisory |
| https://github.com/vapor/vapor/security/advisories/GHSA-gcj9-jj38-hwmc | Third Party Advisory |
| https://vapor.codes/ | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| vapor_project:vapor | < 4.40.1 | no | nvd | /v1/products/vapor_project/vapor |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| vapor/vapor | commit, releases, security_advisory | yes | /v1/repositories/vapor/vapor |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts