ghsa-gcj9-jj38-hwmc
Vulnerability from github
Published
2023-06-09 19:31
Modified
2023-06-09 19:31
Severity ?
VLAI Severity ?
Summary
Vapor's Metrics integration could cause a system drain
Details
Impact
This is a DoS attack against anyone who Bootstraps a metrics backend for their Vapor app with the following attack vector:
- send unlimited requests against a vapor instance with different paths. this will create “unlimited” counters and timers, which will eventually drain the system.
- downstream services might suffer from this attack as well by being spammed with error paths
Patches
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.
Workarounds
Don't bootstrap a metrics system or upgrade to 4.40.1
For more information
If you have any questions or comments about this advisory: * Open an issue in Vapor * Ask in Discord
{ "affected": [ { "database_specific": { "last_known_affected_version_range": "\u003c= 4.40.0" }, "package": { "ecosystem": "SwiftURL", "name": "github.com/vapor/vapor" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "4.40.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2021-21328" ], "database_specific": { "cwe_ids": [ "CWE-400" ], "github_reviewed": true, "github_reviewed_at": "2023-06-09T19:31:47Z", "nvd_published_at": "2021-02-26T02:15:00Z", "severity": "MODERATE" }, "details": "### Impact\nThis is a DoS attack against anyone who Bootstraps a metrics backend for their Vapor app with the following attack vector:\n\n1. send unlimited requests against a vapor instance with different paths. this will create \u201cunlimited\u201d counters and timers, which will eventually drain the system.\n2. downstream services might suffer from this attack as well by being spammed with error paths\n\n### Patches\nThis has been patched in 4.40.1. The `DefaultResponder` will rewrite any undefined route paths for to `vapor_route_undefined` to avoid unlimited counters.\n\n### Workarounds\nDon\u0027t bootstrap a metrics system or upgrade to 4.40.1\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Vapor](https://github.com/vapor/vapor)\n* Ask in [Discord](http://vapor.team)", "id": "GHSA-gcj9-jj38-hwmc", "modified": "2023-06-09T19:31:47Z", "published": "2023-06-09T19:31:47Z", "references": [ { "type": "WEB", "url": "https://github.com/vapor/vapor/security/advisories/GHSA-gcj9-jj38-hwmc" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21328" }, { "type": "WEB", "url": "https://github.com/vapor/vapor/commit/e3aa712508db2854ac0ab905696c65fd88fa7e23" }, { "type": "WEB", "url": "https://github.com/vapor/vapor" }, { "type": "WEB", "url": "https://github.com/vapor/vapor/releases/tag/4.40.1" }, { "type": "WEB", "url": "https://vapor.codes" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L", "type": "CVSS_V3" } ], "summary": "Vapor\u0027s Metrics integration could cause a system drain" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…