Advisory Database
  • Advisories
  • Dependency Scanning
  1. swift
  2. ›
  3. github.com/vapor/vapor
  4. ›
  5. CVE-2021-21328

CVE-2021-21328: Vapor's Metrics integration could cause a system drain

June 9, 2023

This is a DoS attack against anyone who Bootstraps a metrics backend for their Vapor app with the following 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

References

  • github.com/advisories/GHSA-gcj9-jj38-hwmc
  • github.com/vapor/vapor
  • github.com/vapor/vapor/commit/e3aa712508db2854ac0ab905696c65fd88fa7e23
  • github.com/vapor/vapor/releases/tag/4.40.1
  • github.com/vapor/vapor/security/advisories/GHSA-gcj9-jj38-hwmc
  • nvd.nist.gov/vuln/detail/CVE-2021-21328
  • vapor.codes/

Detect and mitigate CVE-2021-21328 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.40.1

Fixed versions

  • 4.40.1

Solution

Upgrade to version 4.40.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

swift/github.com/vapor/vapor/CVE-2021-21328.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:09 +0000.