Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Go

CVE-2026-58250 — NATS Server: Denial of service via repeated pre-authentication leafnode INFO messages

High · CVSS 8.6EPSS 0.5% First seen December 01, 2026
GoWebCloud & containersIoTVulnerabilities

Research article

NATS Server CVE-2026-58250: unauthenticated leafnode handshake crash via repeated INFO messages with compression enabled

CVECVE-2026-58250
Vendor and productgo:github.com/nats-io/nats-server/v2
PublishedDecember 01, 2026 21:40 UTC
Research cut-offDecember 01, 2026 21:35 UTC
Sources reviewed3: NVD record (last modified 2026-10-25); CISA KEV catalog; GitHub advisory (2026-12-01)

Executive summary

CVE-2026-58250 is a NULL pointer dereference (CWE-476) in NATS Server's leafnode handshake that can crash the server process with a panic before the connecting peer is authenticated [1, 3]. NVD lists CVSS 3.1 7.5 HIGH with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, while the GitHub advisory lists CVSS 3.1 8.6 HIGH with S:C; both describe availability-only impact [1, 3]. Per the sources, nats-server versions below 2.11.17 and from 2.12.0 up to but excluding 2.12.8 are affected, with fixes in 2.11.17 and 2.12.8 [1, 3]. Exploitation requires only network reachability of a leafnode listener that has compression enabled, and no credentials [3]. CISA's KEV catalog did not list the CVE as of 2026-12-01, and the pack contains no exploitation or proof-of-concept evidence, which does not prove that exploitation has not occurred [2, 3]. The most important immediate action is to upgrade to 2.11.17 or 2.12.8 or, if that cannot happen yet, disable leafnode compression and restrict access to leafnode listeners [1, 3].

Key points

  • CVE-2026-58250 is a NULL pointer dereference (CWE-476) in NATS Server's leafnode handshake that crashes the server with a panic, with no credentials required and network access to a compression-enabled leafnode listener as the only stated condition [1, 3].
  • CVSS 3.1 is reported as 7.5 HIGH by NVD (S:U) and 8.6 HIGH by GitHub (S:C); both describe availability-only impact [1, 3].
  • Affected: nats-server below 2.11.17 and from 2.12.0 (the start of the range differs between sources) below 2.12.8; fixed in 2.11.17 and 2.12.8 [1, 3].
  • CISA KEV did not list the CVE on 2026-12-01, and the pack contains no proof of concept or confirmed exploitation; this does not show the flaw is unexploited [2, 3].
  • Immediate action: disable leafnode compression and restrict leafnode listener access, then upgrade to 2.11.17 or 2.12.8 [1, 3].

Vulnerability identification

FieldValueSource
CVE IDCVE-2026-58250[1, 3]
Vendor / productNATS / nats-server (NVD maps the CPE to linuxfoundation nats-server)[1]
ComponentLeafnode listener handshake, active when compression is enabled[3]
Record statusAnalyzed; published 2026-07-08T20:16:54; last modified 2026-10-25T17:10:00[1]
CWECWE-476, NULL Pointer Dereference: code uses a pointer or reference that has no valid target, without checking it first[1, 3]
CVSS 3.1 (NVD, secondary scorer)7.5 HIGH; CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; scored by security-advisories@github.com[1]
CVSS 3.1 (GitHub advisory)8.6 HIGH; CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H; scored by GitHub[3]
AdvisoryGHSA-3g5q-cfh2-cq67, published 2026-12-01T21:20:07, updated 2026-12-01T21:20:08[1, 3]
CreditKoda Reef[3]
CISA KEV statusNot listed as of 2026-12-01[2]

The two CVSS entries conflict on the Scope metric (S:U versus S:C) and on the base score (7.5 versus 8.6). Both are in the HIGH band. The GitHub advisory is newer than the NVD record, but the pack also states that the advisory gives no CVSS score or vector, which contradicts its own scored header [1, 3]. This article reports both scores and does not choose between them. The GitHub advisory text does not name a CVE identifier; the link to CVE-2026-58250 is made by the advisory title and by NVD's reference tagging [1, 3]. NVD's references include two patch commits (8dcb26eaea78fdcbe96dbee5986d6019fd5cb94a and fc5fe39177533e9dbdd651d2458285bfae1dde27) and release notes for v2.11.17 and v2.12.8 [1].

Vulnerability description

The flaw affects the leafnode listener of NATS Server. A leafnode connection links a separate NATS server into another deployment. When compression is enabled on that listener, repeated leafnode INFO protocol messages sent before the peer has been authenticated and its account configured can drive the server into a state where a value expected later in the handshake is still nil and is dereferenced without a check. The process then crashes with a panic [3].

The security property violated is availability. The advisory states the impact as a server crash [3]. Both vector strings record no confidentiality or integrity impact [1, 3]. The pack does not show code execution, data disclosure or privilege gain, and the vectors do not imply them.

The conditions that matter are: compression enabled on a leafnode listener, network access to that listener, and no credentials [3]. Without compression enabled, the advisory says the flaw does not apply [3].

Attack surface and exploitation prerequisites

FactorRequirementBasis
Access vectorNetwork; the attacker needs network access to the leafnode listener[1, 3] (AV:N; advisory text)
Adjacent, local or physical accessNot required according to the network vector[1, 3] (vector only)
AuthenticationNone required; the flaw is reached before the peer is authenticated[1, 3] (PR:N; advisory text)
User interactionNone[1, 3] (UI:N)
Required configurationCompression enabled on a leafnode listener[3] (advisory text)
Attacker positionAny host that can reach the leafnode listener over the network[3]
Attack complexityLow according to the vector (AC:L); the advisory does not describe timing or state conditions beyond repetition[1, 3] (vector only)

The no-authentication requirement is stated in the advisory text, not only in the vector [3]. Whether a given deployment exposes its leafnode listener depends on its network design, which the pack does not describe. Exposure from the vector alone is not proof that a specific system is reachable or vulnerable.

Impact analysis

AreaImpactBasis
ConfidentialityNone stated[1, 3]
IntegrityNone stated[1, 3]
AvailabilityHigh: the server process can crash with a panic, which is the only impact stated[3] (advisory); [1, 3] (A:H)
Authentication and authorizationThe flaw is reached before authentication; no bypass is described[3]
Privilege boundariesNo privilege change is described[1, 3]
Data and privacyNone indicated[3]
Business operationsAnalyst assessment: a crashed server interrupts clients and leafnode links that depend on it, and repeated triggering could keep it unavailable[3] (crash behavior)

The impact is limited to disruption of the affected server. The sources do not describe downstream effects on other systems.

Affected products and versions

ProductAffected versionsFixed versionSource and qualification
nats-server (branch 2.11)Below 2.11.172.11.17Vendor CVE record and NVD CPE [1]; GitHub advisory [3]
nats-server (branch 2.12)From 2.12.0 to below 2.12.82.12.8NVD CPE (2.12.0) [1]; GitHub advisory (2.12.0-RC.1) [3]

The vendor-published CVE record lists the start of the 2.12 range as 2.12.0-preview.1 [1]. The GitHub advisory starts the range at 2.12.0-RC.1 [3], and NVD uses 2.12.0 [1]. Because the vendor record gives the broadest start, this article treats preview builds from 2.12.0-preview.1 onward as in range until a vendor source confirms otherwise. This is an analyst assessment. The advisory text names v2.12.7 and v2.11.16 and earlier as affected [3]. The fixed releases are v2.12.8 and v2.11.17 in the vendor record, the advisory and the release-note references [1, 3]. The pack contains no other platform, container image or packaging details, and no statement about other distributions.

Exploitation and threat intelligence status

The pack gives no confirmed exploitation in the wild. CISA's KEV catalog did not list CVE-2026-58250 when the catalog was read on 2026-12-01 [2]. The catalog's absence is not evidence that the flaw has gone unexploited [2]. The GitHub advisory states that it contains no exploitation status and no proof-of-concept information [3]. No threat actor, campaign or sector is attributed in the pack. The advisory was published about fifteen minutes before the research cut-off [2, 3], so it has had little time to accumulate further reporting. The NVD record was analyzed on 2026-07-08 and last modified on 2026-10-25 [1].

Detection and exposure assessment

  1. Inventory every host and container that runs nats-server. For each one, run the product's own version command, nats-server --version, which is read-only. Compare the reported version with 2.11.17 for branch 2.11 and 2.12.8 for branch 2.12 [1, 3]. Treat any 2.12 preview or release candidate build as potentially in range, per the discussion above. A version match shows that a vulnerable release is present; it does not prove that the flaw is reachable or was exploited.
  2. On each host, review the server configuration file for the leafnode listener block and record whether compression is enabled on it [3]. The pack does not name the configuration key or its default value, so the reviewer must read the vendor documentation for the installed version to identify it.
  3. Determine the listener port for each leafnode listener from the same configuration, then identify which network segments and addresses can reach it. Compare the reachable set with the known leafnode peers. Any reachable address that is not a known peer is an exposure to investigate.
  4. Review service-manager and server logs for unexpected process exits, restarts or panic output on the affected hosts around the time the advisory was published and afterwards. The pack contains no log signatures or event identifiers for this crash, so this check relies on general crash evidence, which is an analyst assessment.
  5. Record the result for each host as one of: version in range, compression enabled, listener reachable from untrusted networks. A host with all three conditions is the highest priority for remediation.

Remediation

Immediate mitigation, in priority order:

  1. Disable compression on every leafnode listener. The advisory names this as the workaround until a fixed version is deployed [3]. Verify it by re-reading the configuration after the change. The pack does not state whether a restart or reload is required to apply the change, so confirm this in a test environment first.
  2. Restrict network access to each leafnode listener to the known peer addresses (analyst assessment). The vulnerability is reached before authentication, so limiting which hosts can connect reduces the set of possible attackers [3]. Verify by attempting a connection to the listener port from a host outside the allowed list and confirming that the connection is refused.
  3. Increase monitoring of the affected hosts for unexpected restarts (analyst assessment), as described in the detection steps above.

Permanent fix (vendor-confirmed): upgrade branch 2.11 installations to 2.11.17 and branch 2.12 installations to 2.12.8 [1, 3]. Verify the result with nats-server --version on each host. The pack does not give upgrade prerequisites, rollback steps, configuration changes needed after upgrade, or restart requirements, so take a configuration backup and plan a maintenance window before upgrading. After upgrading, re-enable compression only if it is needed, and confirm that the listener restriction still applies.

Workarounds and compensating controls

Disabling leafnode compression is the vendor-stated workaround until fixed versions are deployed [3]. The advisory describes the flaw as tied to compression, so the workaround removes the condition that makes the flaw reachable [3]. It does not correct the underlying nil-state dereference in the code, so the workaround is not equivalent to the fixed releases [1, 3]. Re-enabling compression before upgrading would restore the exposure.

Restricting network access to the listener reduces who can send the repeated messages, but any host within the allowed set is still able to trigger the crash (analyst assessment). This is a compensating control, not a fix.

Root cause analysis

Confirmed: the advisory states that a piece of state that the handshake expects to be set later may still be nil at the point it is used, and that it is dereferenced without a check [3]. This is consistent with the CWE-476 classification [1, 3].

Analyst assessment: because the handshake reaches this point before the peer is authenticated and its account is configured, the missing state is expected to be unset at that stage. A repeated sequence of pre-authentication messages can therefore reach the dereference. The pack does not identify the function, file or specific state variable, so this assessment cannot be tied to a code location.

The sources do not explain why the compression setting changes the handshake path, and the reason for it cannot be determined from the pack.

Remediation checklist

  1. Inventory all nats-server hosts and containers, and run nats-server --version on each to compare against 2.11.17 (branch 2.11) and 2.12.8 (branch 2.12); treat any 2.12 preview or RC build as potentially in range [1, 3].
  2. On each host, review the leafnode listener block in the server configuration and identify whether compression is enabled; disable it on every leafnode listener as the vendor-stated workaround, then reload or restart only after confirming in test whether a restart is required [3].
  3. Identify the listener port for each leafnode listener and restrict inbound access to known leafnode peer addresses only; verify by attempting a connection from an unlisted host and confirming it is refused (analyst assessment based on the pre-authentication behavior) [3].
  4. Upgrade every branch 2.11 installation to 2.11.17 and every branch 2.12 installation to 2.12.8 after taking a configuration backup and planning a maintenance window and rollback path [1, 3].
  5. After upgrading, confirm the installed version with nats-server --version on each host and re-verify the listener access restrictions still apply [1, 3].
  6. Re-enable leafnode compression only after the upgrade is confirmed, and only where it is required; re-test that the listener still accepts only known peers [3].
  7. Review service-manager and server logs on affected hosts for unexpected process exits, restarts or panic output since the advisory was published on 2026-12-01; the pack has no log signatures, so treat this as a general crash check [3].
  8. Recheck the GHSA-3g5q-cfh2-cq67 record and the CISA KEV catalog periodically for updated exploitation status or new details [2, 3].

Evidence gaps

  • The function, file and specific state variable responsible for the nil dereference are not identified; confirmation requires the vendor's patch diff or the fixed source code for 2.11.17 and 2.12.8 (references in the NVD record).
  • The NVD English description text is not in the pack, so the record's description cannot be cross-checked against the advisory; confirmation requires the NVD record's description field.
  • The CVSS scores conflict (7.5 with S:U from NVD versus 8.6 with S:C from GitHub), and the GitHub advisory text also says it gives no CVSS score or vector; confirmation requires the scorers' rationale or a vendor statement.
  • The start of the affected 2.12 range differs across sources (2.12.0-preview.1, 2.12.0 and 2.12.0-RC.1); confirmation requires the vendor's complete version list or release notes for each 2.12 pre-release.
  • The configuration key that enables compression on a leafnode listener, and whether compression is enabled by default, are not in the pack; confirmation requires the vendor configuration documentation for the installed version.
  • The leafnode listener's default port and whether it is exposed by default are not in the pack; confirmation requires the vendor documentation and the deployment's configuration.
  • Whether a restart or reload is required after disabling compression or after upgrading is not documented in the pack; confirmation requires the release notes or vendor upgrade guide.
  • Upgrade prerequisites, rollback procedure and any configuration changes required after upgrading are not in the pack; confirmation requires the release notes for v2.11.17 and v2.12.8.
  • No proof of concept, exploitation report or indicator of compromise is in the pack; confirmation requires the advisory update, vendor telemetry or threat intelligence reporting, and log signatures for crash events.
  • Platform, container image, operating system and packaging details for affected builds are not in the pack; confirmation requires the vendor's distribution documentation.
  • The GitHub advisory does not name the CVE in its text; the link to CVE-2026-58250 rests on the advisory title and NVD's reference tagging; confirmation requires the vendor or CVE Numbering Authority record.

References

  1. CVE-2026-58250 record. NIST National Vulnerability Database (NVD), 2026-10-25. https://nvd.nist.gov/vuln/detail/CVE-2026-58250. Accessed 2026-12-01. NVD record status, publication and modification dates, CVSS 3.1 score, vector and scorer for NVD, CWE-476 mapping, vendor-published affected version ranges, NVD CPE configuration, patch commit references, and vendor advisory and release-note references including v2.11.17 and v2.12.8.
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-01. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-01. CISA KEV status: CVE-2026-58250 was not listed as of 2026-12-01, with the caveat that this is not evidence of absence of exploitation.
  3. GHSA-3g5q-cfh2-cq67 / CVE-2026-58250 — NATS Server: Denial of service via repeated pre-authentication leafnode INFO messages. GitHub Security Advisory Database, 2026-12-01. https://github.com/advisories/GHSA-3g5q-cfh2-cq67. Accessed 2026-12-01. GitHub advisory GHSA-3g5q-cfh2-cq67 details: the denial-of-service mechanism during the leafnode handshake, the compression condition, the pre-authentication network trigger, the root cause description, the stated impact, the workaround, the affected package ranges, the fixed versions, the second CV

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Severity breakdown

High · 7.5 CVSS 3.1 base score from the CNA (github.com)

An attacker without an account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Login needed
no
User action needed
no
Scope
stays within the vulnerable component
Impact
high on availability, none on confidentiality and integrity

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H · CVSS 3.1 8.6 from GitHub: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H

Weakness

  • CWE-476: NULL Pointer Dereference

Affected and fixed versions

ProductAffected versionsFixed in
github.com/nats-io/nats-server/v2 (Go)< 2.11.172.11.17
≥ 2.12.0-RC.1, < 2.12.82.12.8
nats-io nats-server< 2.11.17, >= 2.12.0-preview.1, < 2.12.8—

From the GitHub Advisory Database and the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain), the GitHub Advisory Database (CC BY 4.0).

Details

Background

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

The NATS Server supports leafnode connections between servers.

Problem Description

An unauthenticated peer with network access to a leafnode listener with compression enabled could crash the server during the pre-authentication leafnode handshake.

The issue occurs after repeated leafnode INFO protocol messages before a leafnode connection had completed authentication and account setup. Certain state expected later in the handshake could be nil and then later dereferenced, causing a process panic.

Affected Versions

Versions v2.12.7, v2.11.16 and below are vulnerable. The issue is fixed in v2.12.8 and v2.11.17.

Workarounds

Disabling leafnode compression can mitigate the issue until fixed versions are deployed.

Resources

Source: GHSA-3g5q-cfh2-cq67 / CVE-2026-58250, GitHub Advisory Database, licensed CC BY 4.0.

Affected

  • go:github.com/nats-io/nats-server/v2

Frequently asked questions

What is CVE-2026-58250?

CVE-2026-58250 is a NULL pointer dereference (CWE-476) in NATS Server's leafnode handshake that can crash the server process with a panic before the connecting peer is authenticated. NVD lists CVSS 3.1 7.5 HIGH with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, while the GitHub advisory lists CVSS 3.1 8.6 HIGH with S:C; both describe availability-only impact. Weakness type: NULL Pointer Dereference (CWE-476).

How severe is CVE-2026-58250?

CVE-2026-58250 has a CVSS 3.1 base score of 7.5 (high), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.

Is CVE-2026-58250 being exploited?

Not as far as is known: CVE-2026-58250 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-58250?

github.com/nats-io/nats-server/v2 (Go) < 2.11.17 (fixed in 2.11.17); github.com/nats-io/nats-server/v2 (Go) ≥ 2.12.0-RC.1, < 2.12.8 (fixed in 2.12.8); nats-io nats-server < 2.11.17, >= 2.12.0-preview.1, < 2.12.8.

How do I fix CVE-2026-58250?

Inventory all nats-server hosts and containers, and run nats-server --version on each to compare against 2.11.17 (branch 2.11) and 2.12.8 (branch 2.12); treat any 2.12 preview or RC build as potentially in range. On each host, review the leafnode listener block in the server configuration and identify whether compression is enabled; disable it on every leafnode listener as the vendor-stated workaround, then reload or restart only after confirming in test whether a restart is required. Identify the listener port for each leafnode listener and restrict inbound access to known leafnode peer addresses only; verify by attempting a connection from an unlisted host and confirming it is refused (analyst assessment based on the pre-authentication behavior).

Timeline & sources

References

Related vulnerabilities & news