Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed MQTT port
-
DeliveryOpen TCP connection
-
ExploitSend CONNECT with oversized remaining-length varint
-
ExecutionServer buffers data past max_payload
-
PersistRepeat across many connections
-
ImpactExhaust memory / crash broker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the optional NATS MQTT listener to be enabled (an mqtt {} configuration block) and network-reachable by the attacker; core NATS deployments without MQTT are not affected. No authentication is required (PR:N) because the flaw is in pre-connection parsing that runs before the client is authenticated, and the attacker only needs to send a single crafted MQTT CONNECT packet with an oversized 'remaining length' varint. Limiting factors: the vulnerable path only applies while the client is not yet connected, MQTT must be explicitly configured (non-default), and the impact is confined to availability (no data disclosure or modification); patched versions enforce max_payload and disconnect violators. |
| Impact | The signals are internally consistent and point to a genuine but bounded (availability-only) risk. The CVSS vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H correctly reflects a network-reachable, low-complexity, pre-authentication DoS with no confidentiality or integrity impact, scoring 7.5 (High). No EPSS score was provided and the CVE is not in CISA KEV, so there is no evidence of active exploitation; the fix references are upstream commits and tagged releases rather than exploit code, so no public exploit is identified. The main caveat is exposure scope: exploitation requires the optional MQTT listener to be enabled and network-reachable, which is NOT a default NATS deployment mode - so despite PR:N, real-world attack surface is limited to environments that deliberately turn on MQTT, making this lower priority for pure core-NATS deployments and higher priority for IoT/MQTT gateways using NATS. |
| Exploit ScenarioDerived | An attacker who can reach an internet- or LAN-exposed NATS MQTT port opens a TCP connection and sends an MQTT CONNECT packet whose 'remaining length' varint declares a very large size, then streams (or withholds) bytes so the unpatched server keeps buffering pre-connection data without applying max_payload. Repeating this across many connections exhausts memory and degrades or crashes the broker, denying service to legitimate messaging clients. No public exploit is identified, but the vendor's own regression test demonstrates the exact triggering packet. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jul 08, 2026
Denial of service in NATS Server (nats-server) MQTT handler allows a remote, unauthenticated client to exhaust server memory by sending an MQTT CONNECT packet that declares a large variable-length 'remaining length' before authentication completes. Because the pre-connection MQTT parser failed to enforce the configured max_payload limit, the server would buffer attacker-controlled data unbounded, degrading or crashing the broker (CVSS 7.5, availability-only impact). There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the fix is confirmed by upstream commits, releases, and a GitHub Security Advisory.
Earlier versions of this analysis (2)
Remote denial-of-service in NATS Server (nats-io/nats-server) lets unauthenticated network attackers exhaust server resources and crash or hang the messaging broker, disrupting availability for all connected clients. The flaw is a CWE-400 uncontrolled resource consumption issue fixed in releases v2.12.12 and v2.14.3, with no confidentiality or integrity impact (CVSS 3.1 base 7.5, C:N/I:N/A:H). No public exploit identified at time of analysis, though upstream fix commits are publicly visible on GitHub.
Insufficient data exists to characterize CVE-2026-58210 meaningfully. The only available intelligence signal is a vendor attribution to Ubuntu, with no description, CVSS vector, CWE classification, or supporting references provided. No exploitation status, affected versions, or impact type can be determined from the available data.
RemediationAI
Vendor-released patch: upgrade nats-server to v2.12.12 (https://github.com/nats-io/nats-server/releases/tag/v2.12.12) or v2.14.3 (https://github.com/nats-io/nats-server/releases/tag/v2.14.3), which enforce the max_payload limit during pre-connection MQTT parsing (fixing commits bce9ef39469e610aeddb819194ceb7f7edfc0861 and e016e47bbf70304945f2ae9dc397e4862adefaf5). If immediate patching is not possible, the most effective compensating control is to disable the MQTT listener (remove the mqtt {} block) where it is not required, which eliminates the vulnerable code path entirely but breaks any MQTT clients; where MQTT is needed, restrict the MQTT port to trusted networks via firewall/security-group rules and place it behind an authenticating proxy or mTLS to reduce unauthenticated reachability, at the cost of added connection overhead. Setting a conservative max_payload does not fully mitigate the pre-authentication case on unpatched servers, so network restriction plus upgrade is the correct combination; see the advisory GHSA-r72h-j7qq-v6qg for details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NATS Server is a CNCF messaging system that, in addition to its native protocol, exposes an optional MQTT 3.1.1 listener. MQTT packets begin with a fixed header whose second element is a variable-length integer ('remaining length') indicating the size of the rest of the packet. The affected code path in server/mqtt.go (mqttParse → mqttReader.readPacketLen/readPacketLenWithCheck) parsed and accumulated inbound bytes for a not-yet-connected client without applying the server's max_payload cap, an instance of CWE-400 (Uncontrolled Resource Consumption). The patched code introduces readVarInt plus a maxLen parameter (int32(jwt.NoLimit) once connected, otherwise atomic c.mpay), returns ErrMaxPayload when the computed packet length exceeds the limit, and triggers maxPayloadViolation to disconnect the offending client - while a separate test (TestMQTTMaxPayloadDoesNotCapPublishTopic) confirms the cap must not wrongly restrict legitimate publish topics.
Know when Nats Server gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Pre-authentication MQTT parser reachable over the network with a single crafted packet (AV:N/AC:L/PR:N/UI:N); impact is resource exhaustion, so A:H with C:N/I:N.
Primary rating from Vendor (vendor:ubuntu).
CVSS VectorVendor: vendor:ubuntu
Lifecycle Timeline
4DescriptionCVE.org
[Unknown description]
Executive ViewAI
NATS Server message broker deployments are vulnerable to a remote denial-of-service attack via the MQTT handler that allows unauthenticated attackers to crash instances by exhausting server memory. Organizations relying on NATS for critical messaging infrastructure face potential service outages without immediate remediation. Vendor patches are available in upstream releases and should be deployed urgently.
Apply vendor patch. No interim mitigations have been identified; patch deployment to upstream-released versions is required for vulnerability resolution.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Nats Server
View allNATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings ar
The JWT library in NATS nats-server before 2.1.9 has Incorrect Access Control because of how expired credentials are han
This affects all versions of package github.com/nats-io/nats-server/server. Rated high severity (CVSS 7.5), this vulnera
NATS nats-server before 2.7.2 has Incorrect Access Control. Rated high severity (CVSS 8.8), this vulnerability is remote
Authentication bypass in NATS Server (nats-io/nats-server) lets an unauthenticated attacker on an adjacent network conne
Remote denial of service in the NATS Server (nats-io/nats-server) leafnode subsystem allows unauthenticated attackers to
An integer overflow in NATS Server before 2.0.2 allows a remote attacker to crash the server by sending a crafted reques
Remote denial-of-service in NATS Server (nats-server) affects deployments with the WebSocket listener enabled but MQTT d
NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise,
The JWT library in NATS nats-server before 2.1.9 allows a denial of service (a nil dereference in Go code). Rated high s
Protocol injection in NATS Server MQTT support allows an authenticated MQTT client to smuggle control characters (tab, n
NATS nats-server before 2.7.4 allows Directory Traversal (with write access) via an element in a ZIP archive for JetStre
EUVD-2026-42348
GHSA-r72h-j7qq-v6qg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB