CVE-2026-58210 — NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packets
One of 4 go:github.com/nats-io/nats-server/v2 vulnerabilities published together by GitHub Advisory: our article covers all of them.
GoWebCloud & containersIoTVulnerabilitiesSeverity breakdown
High · 7.5
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on availability, none on confidentiality and integrity
Weakness
- CWE-400: Uncontrolled Resource Consumption
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/nats-io/nats-server/v2 (Go) | < 2.12.12 | 2.12.12 |
| ≥ 2.14.0-RC.1, < 2.14.3 | 2.14.3 | |
| nats-io nats-server | < 2.12.12, >= 2.14.0-RC.1, < 2.14.3 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/nats-io/nats-server/commit/bce9ef39469e610aeddb819194ceb7f7e…
- github.com/nats-io/nats-server/commit/e016e47bbf70304945f2ae9dc397e4862…
- github.com/nats-io/nats-server/releases/tag/v2.12.12
- github.com/nats-io/nats-server/releases/tag/v2.14.3
Other references
Details
Background
NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT and edge computing.
The NATS Server supports MQTT clients, including authentication and parsing of MQTT CONNECT packets.
Problem Description
An unauthenticated MQTT client could cause the server to retain large incomplete MQTT CONNECT packets before authentication completed.
The parser retained partial pre-authentication packet data while waiting for the advertised MQTT packet length to be completed. An attacker could therefore consume server memory until authentication timeouts closed the connections.
Affected Versions
Versions v2.14.2, v2.12.11 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.12.
Workarounds
Deployments not using MQTT are not affected. Deployments that need MQTT should upgrade to a fixed release.
References
- GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-r72h-j7qq-v6qg>
- Credit: Asritha Bodepudi, Trail of Bits
Affected
- go:github.com/nats-io/nats-server/v2
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-58210?
Background NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT and edge computing. The NATS Server supports MQTT clients, including authentication and parsing of MQTT CONNECT packets. Problem Description An unauthenticated MQTT client could cause the server to retain large incomplete MQTT CONNECT packets before authentication completed. Weakness type: Uncontrolled Resource Consumption (CWE-400).
How severe is CVE-2026-58210?
CVE-2026-58210 has a CVSS 3.1 base score of 7.5 (high), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-58210 being exploited?
Not as far as is known: CVE-2026-58210 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.7% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-58210?
github.com/nats-io/nats-server/v2 (Go) < 2.12.12 (fixed in 2.12.12); github.com/nats-io/nats-server/v2 (Go) ≥ 2.14.0-RC.1, < 2.14.3 (fixed in 2.14.3); nats-io nats-server < 2.12.12, >= 2.14.0-RC.1, < 2.14.3.
How do I fix CVE-2026-58210?
Update to a fixed release: github.com/nats-io/nats-server/v2 (Go) 2.12.12; github.com/nats-io/nats-server/v2 (Go) 2.14.3.
Timeline & sources
References
Related vulnerabilities & news
- GHSA-qrcv-3558-gj4f / CVE-2026-58213 — NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
- LLMKube Model.spec.source path traversal allows arbitrary file read (CVE-2026-68903)
- Cocos AI attested TLS: one-time attestation at handshake enables TOCTOU after connection setup (CVE-2026-119345)
- GHSA-f9h7-4mmq-vgcq / CVE-2026-58262 — Klever Go counts bitmap padding bits toward BLS quorum, allowing blocks with insufficient signatures
- Aedes MQTT broker: deeply nested topic strings crash the Node.js process (CVE-2026-63341)