Denial of service in github.com/nats-io/nats-server/server
High7.5CVE-2020-28466 · Published Feb 15, 2022 · updated Sep 10, 2026
This affects all versions of package github.com/nats-io/nats-server/server. Untrusted accounts are able to crash the server using configs that represent a service export/import cycles. Disclaimer from the maintainers - 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.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| github.com/nats-io/nats-server Go | < 2.2.0 | 2.2.0 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-400
- Also known as
- BIT-nats-2020-28466, CVE-2020-28466, GO-2022-0855, SNYK-GOLANG-GITHUBCOMNATSIONATSSERVERSERVER-1042967
- nvd.nist.gov/vuln/detail/CVE-2020-28466
- github.com/nats-io/nats-server/pull/1731
- github.com/nats-io/nats-server/pull/1731/commits/2e3c22672936f4980d343fb1d328b38919e74796
- pkg.go.dev/vuln/GO-2022-0855
- snyk.io/vuln/SNYK-GOLANG-GITHUBCOMNATSIONATSSERVERSERVER-1042967
- www.openwall.com/lists/oss-security/2021/03/16/1
- www.openwall.com/lists/oss-security/2021/03/16/2
More nats-server advisories
All nats-server| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Aug 212024 | Import loops in account imports, nats-server DoS in github.com/nats-io/nats-server | Unrated | No fix yet |
| Aug 212024 | Arbitrary file write in nats-server in github.com/nats-io/nats-server | Unrated | No fix yet |
| Aug 212024 | Incorrect Authorization in NATS nats-server in github.com/nats-io/nats-server | Unrated | No fix yet |
| Jul 122024 | NATS Server and Streaming Server fails to enforce negative user permissions | Unrated | No fix yet |
| Jun 52024 | NATS server TLS missing ciphersuite settings when CLI flags used in github.com/nats-io/nats-server | Unrated | No fix yet |
| Sep 192023 | NATS nats-server allows directory traversal via unintended path to a management action | Critical9.8 | 2.7.4 |