CVE-2026-58210: NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packets
Published 2026-11-20 · Updated 2026-11-23 · Also known as BIT-nats-2026-58210, GHSA-r72h-j7qq-v6qg, GO-2026-7014
Summary
NATS Server contains an unauthenticated memory exhaustion vulnerability due to how it handles incomplete MQTT CONNECT packets. Engineering and security teams running vulnerable versions of nats-server with MQTT enabled should upgrade immediately.
Who is affected
Unauthenticated MQTT clients can cause the server to retain large incomplete MQTT CONNECT packets before authentication completes, consuming server memory until authentication timeouts close the connections. Deployments that do not use MQTT are not affected.
Exploitability
The vulnerability is exploitable over the network without requiring authentication, user interaction, or privileges, yielding a high CVSS base score of 7.5 for availability impact. The EPSS score is 0.006 and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade github.com/nats-io/nats-server/v2 to version 2.12.12, 2.14.3, or later.
- Disable MQTT if it is not required by your deployments.
How to check your project
- Check Go dependency files (go.mod) to see if github.com/nats-io/nats-server/v2 is within the affected ranges introduced to 2.12.11 or 2.14.0-RC.1 through 2.14.2.
Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/nats-io/nats-server/v2 |
>= 0, < 2.12.12 | 2.12.12 | go get github.com/nats-io/nats-server/[email protected] |
| Go | github.com/nats-io/nats-server/v2 |
>= 2.14.0-RC.1, < 2.14.3 | 2.14.3 | go get github.com/nats-io/nats-server/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
Are deployments not using MQTT affected?
No, deployments that do not use MQTT are not affected by this vulnerability.
What versions are fixed?
The issue is fixed in versions 2.12.12 and 2.14.3.
Is authentication required to exploit this issue?
No, an unauthenticated MQTT client can trigger the memory exhaustion before authentication is completed.
Original advisory description
References
- WEB https://github.com/nats-io/nats-server/security/advisories/GHSA-r72h-j7qq-v6qg
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-58210
- WEB https://github.com/nats-io/nats-server/commit/bce9ef39469e610aeddb819194ceb7f7edfc0861
- WEB https://github.com/nats-io/nats-server/commit/e016e47bbf70304945f2ae9dc397e4862adefaf5
- PACKAGE https://github.com/nats-io/nats-server
- WEB https://github.com/nats-io/nats-server/releases/tag/v2.12.12
- WEB https://github.com/nats-io/nats-server/releases/tag/v2.14.3
Source records: GHSA-r72h-j7qq-v6qg, GO-2026-7014 (OSV.dev) · EPSS by FIRST, 2026-11-26.