CVE-2021-21328 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vapor/vapor/commit/e3aa712508db2854ac0ab905696c65fd88fa7e23 | CVE | PatchThird Party Advisory |
| https://github.com/vapor/vapor/releases/tag/4.40.1 | CVE | Release NotesThird Party Advisory |
| https://github.com/vapor/vapor/security/advisories/GHSA-gcj9-jj38-hwmc | CVE | Third Party Advisory |
| https://vapor.codes/ | CVE | Product |
| https://github.com/vapor/vapor/commit/e3aa712508db2854ac0ab905696c65fd88fa7e23 | [email protected] | PatchThird Party Advisory |
| https://github.com/vapor/vapor/releases/tag/4.40.1 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/vapor/vapor/security/advisories/GHSA-gcj9-jj38-hwmc | [email protected] | Third Party Advisory |
| https://vapor.codes/ | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vapor project vapor | < 4.40.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Mar 5, 2021 | Initial Analysis | [email protected] |