# CVE-2021-21328: Denial of Service

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.86%, higher than 79% of CVEs (2026-12-01)
- Published: 2021-02-26T01:45:23.000Z
- Modified: 2026-07-08T06:29:57.342Z
- Also known as: GHSA-gcj9-jj38-hwmc
- Weaknesses: CWE-400
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vapor vapor: <= 4.40.0
- github.com/vapor/vapor (SwiftURL): before 4.40.1
- vapor_project vapor: before 4.40.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/vapor/vapor/security/advisories/GHSA-gcj9-jj38-hwmc> (third-party-advisory, web)
- <https://github.com/vapor/vapor/commit/e3aa712508db2854ac0ab905696c65fd88fa7e23> (patch, third-party-advisory, web)
- <https://github.com/vapor/vapor/releases/tag/4.40.1> (release-notes, third-party-advisory, web)
- <https://vapor.codes/> (product)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21328> (advisory)
- <https://github.com/vapor/vapor> (web)
- <https://vapor.codes> (web)

## Sources

- CVE List: [CVE-2021-21328](https://www.cve.org/CVERecord?id=CVE-2021-21328), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-gcj9-jj38-hwmc](https://github.com/advisories/GHSA-gcj9-jj38-hwmc), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21328](https://nvd.nist.gov/vuln/detail/CVE-2021-21328), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21328 · Whole record: https://cve.day/CVE-2021-21328.json · Rebuilt by cve.day 2026-11-25T22:58:00.072Z
