GHSA-gwj5-3vfq-q992: Import loops in account imports, nats-server DoS
7.5
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/21/2021
Updated
1/9/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/v2 | go | < 2.2.0 | 2.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The core vulnerability existed in the service import logic where cyclic dependencies between accounts weren't detected. The key function AddServiceImportWithClaim
was modified to add cycle checking (via importFormsCycle
), proving it was previously vulnerable. This function directly handles import creation and would appear in profilers when attackers attempt to establish cyclic imports. The added error ErrServiceImportFormsCycle
and new helper functions (serviceExportOverlaps
, serviceImportOverlaps
) in the patch further confirm the missing pre-validation was the root cause.