CVE-2026-58250: NATS Server Leafnode Compression Denial of Service
NATS Server, a widely used cloud and edge messaging platform, has a denial-of-service vulnerability in its leafnode listener when compression is enabled. An attacker without credentials can crash the server by sending specially crafted protocol messages before the authentication process completes. This affects versions prior to 2.12.8 and 2.11.17. The vulnerability requires direct network access to the leafnode port and does not lead to data theft or system compromise—only service interruption.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-476
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-07-08 / 2026-07-13
NVD description (verbatim)
NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.12.8 and 2.11.17, an unauthenticated peer with network access to a leafnode listener with compression enabled could crash the server during the pre-authentication leafnode handshake by sending repeated leafnode INFO protocol messages before authentication and account setup completed. This issue is fixed in versions 2.12.8 and 2.11.17.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in NATS Server's leafnode protocol handshake logic when compression is enabled. During the pre-authentication phase, before account setup is complete, an unauthenticated peer can send repeated INFO protocol messages that trigger a null pointer dereference (CWE-476) in the server's message handling code. The flaw allows an attacker with network access to the leafnode listener to cause an uncontrolled crash. The issue has been patched in NATS Server 2.12.8 and 2.11.17.
Business impact
Deployments relying on NATS Server for inter-cluster communication or edge messaging are vulnerable to service disruption. Because NATS is often used as a critical messaging backbone in cloud-native and IoT architectures, a crash can cascade failures across dependent applications. The attack requires no credentials and is trivial to trigger, making it an attractive denial-of-service vector. Recovery requires manual server restart, imposing operational overhead and SLA impact.
Affected systems
NATS Server versions prior to 2.12.8 (2.12.x branch) and prior to 2.11.17 (2.11.x branch) are vulnerable, but only if the leafnode listener has compression explicitly enabled in the configuration. Systems without leafnode listeners or with compression disabled are not affected. Deployments using NATS in federated or clustered topologies where leafnodes are exposed to untrusted networks are at highest risk.
Exploitability
Exploitability is high. The attack requires no authentication, no special privileges, and no user interaction. An attacker only needs network access to the leafnode listener port (typically port 7422 or a configured alternative). Triggering the crash is straightforward and can be automated. The vulnerability is not currently tracked in CISA's Known Exploited Vulnerabilities catalog, but the simplicity of exploitation means weaponized proof-of-concept code could emerge quickly.
Remediation
Upgrade NATS Server immediately to version 2.12.8 or later (for the 2.12.x line) or version 2.11.17 or later (for the 2.11.x line). If immediate patching is not feasible, disable compression on leafnode listeners or restrict network access to leafnode ports using firewall rules, network segmentation, or ACLs. Test patches in a non-production environment before rollout.
Patch guidance
Consult the official NATS Server release notes and vendor advisory to verify exact patch versions and any compatibility considerations. Deploy 2.12.8 or 2.11.17 as appropriate for your environment. Rolling upgrades are possible; however, validate that your monitoring and orchestration tools can handle brief leafnode listener restarts. Plan the deployment during a maintenance window to minimize disruption.
Detection guidance
Monitor NATS Server logs for unexpected crashes or restarts of the leafnode listener process, particularly if preceded by connection attempts from unexpected sources. Look for repeated or malformed INFO messages in pre-authentication logs. Network detection should flag repeated connection attempts to leafnode ports followed by protocol anomalies. Implement alerting on NATS Server process exit events and resource exhaustion spikes on the messaging infrastructure.
Why prioritize this
This vulnerability merits urgent patching because it combines high availability impact with trivial exploitability and no authentication barrier. NATS Server's role as messaging infrastructure means a crash can disrupt multiple dependent services. The CVSS score of 7.5 (HIGH) reflects the availability impact. Although not yet in active exploit catalogs, the straightforward attack vector suggests rapid weaponization is possible. Organizations running NATS with leafnode compression in any internet-facing or untrusted-network scenario should treat this as critical.
Risk score, explained
The CVSS 3.1 score of 7.5 reflects a network-accessible, low-complexity denial-of-service condition with no authentication required (AV:N, AC:L, PR:N, UI:N) and high availability impact (A:H). There is no confidentiality or integrity impact (C:N, I:N), and the vulnerability is scoped to the affected NATS Server process (S:U). The score aligns with the real-world risk: while not a critical data breach vector, the ease and impact of service disruption justify immediate remediation in production environments.
Frequently asked questions
Does this vulnerability require authentication to exploit?
No. The vulnerability exists in the pre-authentication leafnode handshake, so an attacker does not need valid credentials or account setup to trigger the crash.
Are all NATS Server deployments affected?
Only deployments that have compression explicitly enabled on their leafnode listeners are vulnerable. Leafnode compression is not enabled by default; you can verify your configuration in the NATS Server config file. If you do not use leafnodes or have compression disabled, you are not affected.
What is the immediate mitigation if I cannot patch right away?
You can disable compression on leafnode listeners in your NATS config, or restrict network access to the leafnode port using firewall rules or network policies. However, patching is the preferred long-term fix.
Will upgrading NATS Server cause downtime?
Most orchestration platforms support rolling upgrades with graceful restarts, but brief interruptions to leafnode connections may occur. Test the upgrade path in a staging environment and plan for a maintenance window in production.
This analysis is provided for informational purposes. SEC.co does not warrant the accuracy or completeness of this information. Verify all patch versions and compatibility information against official NATS Server vendor advisories before deployment. Test patches in non-production environments first. CVSS scores and KEV status reflect data current as of the publication date; refer to official sources for the latest information. Organizations remain responsible for their own vulnerability assessment and risk management practices. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-44512MEDIUMONNX Null Pointer Denial of Service in Version Converter
- CVE-2025-55657HIGHGPAC MP4Box NULL Pointer Dereference Denial of Service
- CVE-2025-59604HIGHQualcomm Snapdragon Memory Corruption Vulnerability – HIGH Severity
- CVE-2025-59606HIGHQualcomm Chipset Memory Corruption Local Privilege Escalation
- CVE-2025-62850HIGHQNAP QuTS hero NULL Pointer Dereference DoS Vulnerability
- CVE-2025-66281HIGHQNAP NULL Pointer Dereference DoS Vulnerability (HIGH)
- CVE-2025-70099HIGHNULL Pointer Dereference in lwext4 Directory Parsing (Denial of Service)
- CVE-2026-0156HIGHAndroid RTP Memory Safety Vulnerability—Denial of Service Risk