Skip to main content

NATS Server CVE-2026-58250

| EUVDEUVD-2026-42380 HIGH
NULL Pointer Dereference (CWE-476)
2026-07-06 vendor:ubuntu
7.5
CVSS 3.1 · Vendor: vendor:ubuntu
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed leafnode port
  2. Delivery
    Read server INFO, send INFO {}
  3. Exploit
    Send second INFO before CONNECT
  4. Execution
    Nil c.acc dereference panics process
  5. Impact
    NATS 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jul 08, 2026 - 20:30 cvss changed CVSS 7.5

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.

v1 Jul 06, 2026 - 20:17

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

nats-server < 2.11.17
nats-server 2.12.0-preview.1, < 2.12.8

Affected Packages

euvd nats_server fix: 2.11.17
euvd nats_server_2_12_0_preview_1 fix: 2.12.8

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

Vendor (vendor:ubuntu) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

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).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (vendor:ubuntu).

CVSS VectorVendor: vendor:ubuntu

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
Patch available
Jul 08, 2026 - 21:04 EUVD
Analysis Updated
Jul 08, 2026 - 20:31 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 08, 2026 - 20:30 vuln.today
v2 - CVSS changed
CVSS changed
Jul 08, 2026 - 20:22 NVD
7.5 (HIGH)

DescriptionCVE.org

[Unknown description]

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 50% exploitable
Prevalence
Medium
popular CNCF cloud-native messaging server, but leafnode listener not always exposed
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2021-3127 HIGH POC
7.5 Mar 16

NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings ar

CVE-2020-26892 CRITICAL
9.8 Nov 06

The JWT library in NATS nats-server before 2.1.9 has Incorrect Access Control because of how expired credentials are han

CVE-2020-28466 HIGH
7.5 Mar 07

This affects all versions of package github.com/nats-io/nats-server/server. Rated high severity (CVSS 7.5), this vulnera

CVE-2022-24450 HIGH
8.8 Feb 08

NATS nats-server before 2.7.2 has Incorrect Access Control. Rated high severity (CVSS 8.8), this vulnerability is remote

CVE-2026-58253 HIGH
8.8 Jul 06

Authentication bypass in NATS Server (nats-io/nats-server) lets an unauthenticated attacker on an adjacent network conne

CVE-2026-58210 HIGH
7.5 Jul 06

Denial of service in NATS Server (nats-server) MQTT handler allows a remote, unauthenticated client to exhaust server me

CVE-2019-13126 HIGH
7.5 Jul 29

An integer overflow in NATS Server before 2.0.2 allows a remote attacker to crash the server by sending a crafted reques

CVE-2026-58208 HIGH
7.5 Jul 06

Remote denial-of-service in NATS Server (nats-server) affects deployments with the WebSocket listener enabled but MQTT d

CVE-2023-46129 HIGH
7.5 Oct 31

NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise,

CVE-2020-26521 HIGH
7.5 Nov 06

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

CVE-2026-58213 HIGH
7.1 Jul 06

Protocol injection in NATS Server MQTT support allows an authenticated MQTT client to smuggle control characters (tab, n

CVE-2022-26652 MEDIUM
6.5 Mar 10

NATS nats-server before 2.7.4 allows Directory Traversal (with write access) via an element in a ZIP archive for JetStre

Vendor StatusVendor

SUSE

Severity: Important

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy