CVE-2020-28466: Denial of service in github.com/nats-io/nats-server/server
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.91879%
CWE
Published
2/15/2022
Updated
10/2/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/nats-io/nats-server | go | < 2.2.0 | 2.2.0 |
github.com/nats-io/nats-server/v2 | go | < 2.2.0 | 2.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing cycle detection in service import/export logic. The GitHub commit 2e3c226 shows the fix involved adding cycle checks in AddServiceImportWithClaim
via importFormsCycle()
. The vulnerable versions lacked these checks, allowing malicious accounts to create infinite routing loops through reciprocal service imports/exports. The primary vulnerable entry point is AddServiceImportWithClaim
, which handled untrusted input without cycle validation. The medium confidence for addServiceImport
reflects its role in the import process, though the exact pre-patch implementation details aren't fully visible in provided diffs.