Loading advisory.
Loading advisory.
Import loops in account imports, nats-server DoS
(This advisory is canonically <https://advisories.nats.io/CVE/CVE-2020-28466.txt>)
Published 2021-05-21 16:22 UTC · Modified 2026-09-10 03:49 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/nats-io/nats-server/v2 | Go | < 2.2.0 | 2.2.0 | go get github.com/nats-io/nats-server/v2@v2.2.0 |
| github.com/nats-io/nats-server | Go | all versions | No patch yet | No command until a fix exists. |
(This advisory is canonically https://advisories.nats.io/CVE/CVE-2020-28466.txt)
An export/import cycle between accounts could crash the nats-server, after consuming CPU and memory.
This issue was fixed publicly in https://github.com/nats-io/nats-server/pull/1731 in November 2020.
The need to call this out as a security issue was highlighted by snyk.io and we are grateful for their assistance in doing so.
Organizations which run a NATS service providing access to accounts run by untrusted third parties are affected. See below for an important caveat if running such a service.
Version 2 prior to 2.2.0
2.0.0 through and including 2.1.9 are vulnerable.
fixed with nats-io/nats-server PR 1731, commit 2e3c226729
The nats-server could be killed, after consuming resources.
The import cycle requires at least two accounts to work; if you have open account sign-up, then restricting new account sign-up might hinder an attacker.
Upgrade the nats-server.
Running a NATS service which is exposed to untrusted users presents a heightened risk.
Any remote execution flaw or equivalent seriousness, or denial-of-service by unauthenticated users, will lead to prompt releases by the NATS maintainers.
Fixes for denial of service issues with no threat of remote execution, when limited to account holders, are likely to just be committed to the main development branch with no special attention.
Those who are running such services are encouraged to build regularly from git.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.