CVE-2021-21328: Denial of Service
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 vaporrouteundefined to avoid unlimited counters.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2021-21328?
CVE-2021-21328 is classified as a Denial of Service (DoS) vulnerability.
How do I fix CVE-2021-21328?
To fix CVE-2021-21328, upgrade to Vapor version 4.40.1 or later.
What type of attacks does CVE-2021-21328 allow?
CVE-2021-21328 allows attackers to perform DoS attacks by sending unlimited requests with different paths.
Which versions of Vapor are affected by CVE-2021-21328?
CVE-2021-21328 affects all Vapor versions prior to 4.40.1.
Can CVE-2021-21328 affect the security of my application?
Yes, CVE-2021-21328 can compromise the availability of your application through a DoS attack.