HIGH · CVSS 3.1 7.5 EPSS 0.7% · 51th percentile CWE-400

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

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
### 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

References

Source records: GHSA-r72h-j7qq-v6qg, GO-2026-7014 (OSV.dev) · EPSS by FIRST, 2026-11-26.