PT-2021-14425 · Vapor · Vapor
0Xtim
·
Published
2021-02-26
·
Updated
2023-06-09
·
CVE-2021-21328
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Name of the Vulnerable Software and Affected Versions
Vapor versions prior to 4.40.1
Description
The issue allows for a Denial of Service (DoS) attack against Vapor applications that have a metrics backend enabled. An attacker can send unlimited requests with different paths to a Vapor instance, creating unlimited counters and timers that will eventually drain the system. Downstream services may also be affected as they could be spammed with error paths.
Recommendations
For versions prior to 4.40.1, upgrade to version 4.40.1, where the
DefaultResponder will rewrite any undefined route paths to vapor route undefined to avoid unlimited counters. As a temporary workaround, consider not bootstrapping a metrics system until the issue is resolved.Fix
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Vapor