Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed leafnode port
-
DeliveryRead server INFO, send INFO {}
-
ExploitSend second INFO before CONNECT
-
ExecutionNil c.acc dereference panics process
-
ImpactNATS server crashes, messaging down
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
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 that the target NATS Server has a leafnode listener enabled and reachable by the attacker (the LeafNode port must be configured and network-accessible); the vendor test also exercises it with leafnode compression negotiation (CompressionS2Auto) so an initial INFO is exchanged. The concrete trigger is sending a second INFO protocol message (e.g. containing remote_account or connect_info) after the first INFO but before any CONNECT, while the connection's account is still unbound. No authentication is needed (CVSS PR:N, and the crash occurs pre-CONNECT), no user interaction is required, and no non-default option beyond having leafnodes turned on is necessary. The primary limiting factor is exposure of the leafnode port: servers with no leafnode listener, or with the listener firewalled to trusted peers only, are not reachable for this attack. |
| Impact | This is a genuine, easily-triggered availability risk for any deployment exposing a leafnode listener, but its blast radius is bounded to denial of service - the CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H correctly shows network reachability, low complexity, no privileges, no user interaction, and no confidentiality or integrity impact. No EPSS score, KEV status, or SSVC decision data was provided in the input, so exploitation probability and automatability cannot be quantified from available signals; absence of these is not evidence of low interest. The practical severity hinges on exposure: leafnode ports are frequently reachable across trust boundaries (that is their purpose), and the crash is a single unauthenticated packet with no special tooling, so where leafnodes are internet- or partner-facing this should be treated as a real patch priority rather than a theoretical high-CVSS issue. Where the leafnode listener is disabled or tightly network-restricted, real-world risk is correspondingly low. |
| Exploit ScenarioDerived | An attacker who can reach a NATS server's leafnode TCP port opens a connection, reads the server's initial INFO, replies with 'INFO {}' to pass compression negotiation, then immediately sends a second frame such as 'INFO {"remote_account":"attacker"}' before ever sending CONNECT. The server dereferences the still-nil account pointer and panics, crashing the process and dropping all messaging traffic; because the payload is trivial and requires no credentials, it can be scripted and repeated to keep the service down after every restart. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jul 08, 2026
Remote denial of service in the NATS Server (nats-io/nats-server) leafnode subsystem allows unauthenticated attackers to crash the entire server by sending a second INFO protocol message before CONNECT on the leafnode port, triggering a nil-pointer dereference (c.acc == nil) that panics the process. All server instances exposing a leafnode listener prior to v2.11.17 (2.11.x) and v2.12.8 (2.12.x) are affected. No public exploit has been identified, but the vendor's own regression test (TestLeafNodeSecondInfoBeforeConnectDoesNotPanic) demonstrates the exact crash payload, and the CVSS availability-only vector (7.5) reflects a single-packet, no-auth crash.
Earlier versions of this analysis (2)
Remote denial of service in nats-io nats-server allows an unauthenticated attacker to crash the server by sending a second INFO protocol message before CONNECT on the leaf node listener, triggering a nil-pointer dereference (CWE-476) on the connection's account. The flaw affects nats-server deployments that enable the leaf node port and is fixed in v2.11.17 and v2.12.8; upstream commits and a GitHub Security Advisory (GHSA-3g5q-cfh2-cq67) exist, and the vendor test case doubles as a working reproducer, but there is no public exploit identified as weaponized and no CISA KEV listing at time of analysis.
CVE-2026-58250 affects an unspecified component in the Ubuntu ecosystem, as reported solely by the Ubuntu vendor source. No description, CVSS score, CWE classification, or additional intelligence is available at time of analysis. The vulnerability's nature, impact, and affected versions cannot be characterized from the available data.
RemediationAI
Upgrade NATS Server to a patched release: v2.11.17 if you run the 2.11.x line or v2.12.8 if you run 2.12.x, per releases https://github.com/nats-io/nats-server/releases/tag/v2.11.17 and https://github.com/nats-io/nats-server/releases/tag/v2.12.8 and advisory https://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67 (fix commits 8dcb26eaea78fdcbe96dbee5986d6019fd5cb94a and fc5fe39177533e9dbdd651d2458285bfae1dde27). If you cannot patch immediately, restrict the leafnode listener: bind it to a trusted management interface rather than 0.0.0.0, place it behind a firewall or security group that only permits known leafnode peers, or require TLS client certificates on the leafnode port so unknown TCP peers cannot reach the vulnerable pre-CONNECT handshake; the trade-off is that any legitimate leafnode peer whose source IP or certificate is not allow-listed will lose connectivity, and if you do not actually use leafnodes, disable the leafnode block entirely to remove the exposure with no functional loss.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NATS is a high-performance CNCF messaging system written in Go; 'leafnodes' are a topology feature that let a remote NATS server or client bridge into a hub cluster's account space over a dedicated leafnode listener. The flaw is CWE-476 (NULL Pointer Dereference) in server/leafnode.go: during the leafnode handshake, the connection's account pointer (c.acc) is only bound after the CONNECT phase, but the code paths processLeafnodeInfo() and leafNodeFinishConnectProcess() dereferenced c.acc (and 'remote') without checking for nil. An attacker who sends a second INFO frame (e.g. with a remote_account or connect_info field) after the initial compression-negotiation INFO but before CONNECT reaches these paths while c.acc is still nil, and the resulting dereference panics the Go process. The fix adds explicit nil guards that instead reply 'Authorization Violation' and cleanly close the connection with ProtocolViolation, keeping the server alive.
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
Single unauthenticated pre-CONNECT packet to a network leafnode port crashes the process, so AV:N/AC:L/PR:N/UI:N with availability-only impact (A:H, C/I:N).
Primary rating from Vendor (vendor:ubuntu).
CVSS VectorVendor: vendor:ubuntu
Lifecycle Timeline
4DescriptionCVE.org
[Unknown description]
Executive ViewAI
NATS Server is vulnerable to remote denial of service when leafnode listeners are exposed; unauthenticated attackers can crash the entire server with a single malformed protocol message. Although no public exploit code has been identified, the vulnerability is trivially exploitable and poses significant risk to message broker availability. Organizations running NATS for distributed systems face potential service interruption affecting dependent applications without immediate remediation.
Apply vendor patch.
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
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
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
Denial of service in NATS Server (nats-server) MQTT handler allows a remote, unauthenticated client to exhaust server me
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-42380
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB