{"id":"CVE-2021-21328","published":"2021-02-26T01:45:23Z","modified":"2024-08-03T18:09:15Z","title":"Denial of Service","vendor":"vapor","product":"vapor","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0186,"percentile":0.79761,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/vapor/vapor/security/advisories/GHSA-gcj9-jj38-hwmc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vapor/vapor/commit/e3aa712508db2854ac0ab905696c65fd88fa7e23","tags":["x_refsource_MISC"]},{"url":"https://github.com/vapor/vapor/releases/tag/4.40.1","tags":["x_refsource_MISC"]},{"url":"https://vapor.codes/","tags":["x_refsource_MISC"]}],"priority":{"score":19.7,"factors":[{"name":"EPSS percentile","points":15.95},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"vapor","affectedVersions":[{"vendor":"vapor","product":"vapor","versions":["<= 4.40.0"]}],"affected":[{"ecosystem":"SwiftURL","package":"github.com/vapor/vapor","vulnerableRanges":["<4.40.1"],"patched":["4.40.1"],"from":["GHSA-gcj9-jj38-hwmc"],"provenance":"source"}],"summary":{"text":"The Vapor web framework for Swift, in the Vapor product's metrics handling, lets unbounded request paths create unlimited metric counters and timers in any app that bootstraps a metrics backend. An unauthenticated remote attacker can exhaust system resources by sending a large number of requests to distinct paths, with no user interaction or special configuration required beyond having a metrics backend bootstrapped.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:18:00Z"},"euvd":{"id":"EUVD-2023-1801","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15230","published":"2020-10-02","fixed":"4.29.4","kev":false,"link":{"from":"CVE-2020-15230","to":"CVE-2021-21328","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"SwiftURL:github.com/vapor/vapor","fromFixed":"4.29.4","toFixed":"4.40.1","daysApart":147}]}},{"cve":"CVE-2021-21328","published":"2021-02-26","fixed":"4.40.1","kev":false},{"cve":"CVE-2021-32742","published":"2021-07-09","fixed":"4.47.2","kev":false,"link":{"from":"CVE-2021-21328","to":"CVE-2021-32742","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"SwiftURL:github.com/vapor/vapor","fromFixed":"4.40.1","toFixed":"4.47.2","daysApart":133}]}},{"cve":"CVE-2022-31005","published":"2022-05-31","fixed":"4.60.3","kev":false},{"cve":"CVE-2022-31019","published":"2022-06-06","fixed":"4.61.1","kev":false}],"package":"SwiftURL:github.com/vapor/vapor"}}