CVE-2026-29785: CWE-476: NULL Pointer Dereference in nats-io nats-server
NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. Prior to versions 2.11.14 and 2.12.5, if the nats-server has the "leafnode" configuration enabled (not default), then anyone who can connect can crash the nats-server by triggering a panic. This happens pre-authentication and requires that compression be enabled (which it is, by default, when leafnodes are used). Versions 2.11.14 and 2.12.5 contain a fix. As a workaround, disable compression on the leafnode port.
AI Analysis
Technical Summary
NATS-Server versions prior to 2.11.14 and 2.12.5 contain a vulnerability where enabling the 'leafnode' configuration with compression active allows any unauthenticated remote user to connect and trigger a panic, causing the server to crash. This is due to a NULL pointer dereference and improper handling of compressed data. The issue occurs before authentication and requires compression, which is enabled by default with leafnodes. The vulnerability leads to a denial of service by crashing the server. Fixed in versions 2.11.14 and 2.12.5. The Red Hat advisory confirms the impact and notes no fully satisfactory mitigation meeting their criteria is currently available, other than upgrading or disabling compression on the leafnode port.
Potential Impact
The vulnerability allows unauthenticated remote attackers to cause a denial of service by crashing the nats-server when leafnode and compression are enabled. This results in server unavailability and potential disruption of messaging services relying on nats-server. There is no impact on confidentiality or integrity, but availability is severely affected. The CVSS v3.1 base score is 7.5 (High), reflecting network attack vector, low complexity, no privileges or user interaction required, and high impact on availability.
Mitigation Recommendations
A fix is available in nats-server versions 2.11.14 and 2.12.5. Users should upgrade to these or later versions to remediate the vulnerability. As a workaround, disabling compression on the leafnode port can prevent exploitation, though this may affect performance or functionality. The Red Hat advisory notes that no mitigation fully meets their criteria except upgrading. Users should consult the vendor advisory and apply the official fixes. No other mitigations are recommended.
CVE-2026-29785: CWE-476: NULL Pointer Dereference in nats-io nats-server
Description
NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. Prior to versions 2.11.14 and 2.12.5, if the nats-server has the "leafnode" configuration enabled (not default), then anyone who can connect can crash the nats-server by triggering a panic. This happens pre-authentication and requires that compression be enabled (which it is, by default, when leafnodes are used). Versions 2.11.14 and 2.12.5 contain a fix. As a workaround, disable compression on the leafnode port.
CVSS v3.1
Score 7.5high
Affected software
nats-io
nats-server
pkg:github/nats-io/nats-serverRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
NATS-Server versions prior to 2.11.14 and 2.12.5 contain a vulnerability where enabling the 'leafnode' configuration with compression active allows any unauthenticated remote user to connect and trigger a panic, causing the server to crash. This is due to a NULL pointer dereference and improper handling of compressed data. The issue occurs before authentication and requires compression, which is enabled by default with leafnodes. The vulnerability leads to a denial of service by crashing the server. Fixed in versions 2.11.14 and 2.12.5. The Red Hat advisory confirms the impact and notes no fully satisfactory mitigation meeting their criteria is currently available, other than upgrading or disabling compression on the leafnode port.
Potential Impact
The vulnerability allows unauthenticated remote attackers to cause a denial of service by crashing the nats-server when leafnode and compression are enabled. This results in server unavailability and potential disruption of messaging services relying on nats-server. There is no impact on confidentiality or integrity, but availability is severely affected. The CVSS v3.1 base score is 7.5 (High), reflecting network attack vector, low complexity, no privileges or user interaction required, and high impact on availability.
Mitigation Recommendations
A fix is available in nats-server versions 2.11.14 and 2.12.5. Users should upgrade to these or later versions to remediate the vulnerability. As a workaround, disabling compression on the leafnode port can prevent exploitation, though this may affect performance or functionality. The Red Hat advisory notes that no mitigation fully meets their criteria except upgrading. Users should consult the vendor advisory and apply the official fixes. No other mitigations are recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-04T16:26:02.899Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-29785","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22347","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21769","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:23345","vendor":"Red Hat"}]
Threat ID: 69c43f15f4197a8e3b7dafd6
Added to database: 03/25/2026, 20:01:25 UTC
Last enriched: 08/13/2026, 16:32:23 UTC
Last updated: 09/10/2026, 19:46:20 UTC
Views: 114
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.