{"id":"CVE-2026-58250","aliases":["BIT-nats-2026-58250","GHSA-3g5q-cfh2-cq67"],"url":"https://o3.security/vulnerability/CVE-2026-58250","summary":"NATS Server: Pre-auth server crash via double INFO in leafnode handshake","details":"### Background\n\nNATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT and edge computing.\n\nThe NATS Server supports leafnode connections between servers.\n\n### Problem Description\n\nAn unauthenticated peer with network access to a leafnode listener with compression enabled could crash the server during the pre-authentication leafnode handshake.\n\nThe 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.\n\n### Affected Versions\n\nVersions v2.12.7, v2.11.16 and below are vulnerable. The issue is fixed in v2.12.8 and v2.11.17.\n\n### Workarounds\n\nDisabling leafnode compression can mitigate the issue until fixed versions are deployed.\n\n### Resources\n\n * GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67>\n * Credit: Koda Reef","published":"2026-07-08T19:48:55.058Z","modified":"2026-10-28T02:30:42.403560008Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":{"score":0.00505,"percentile":0.44722,"asOf":"2026-12-01"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/nats-io/nats-server/v2","fixedVersion":"2.11.17"},{"ecosystem":"Go","name":"github.com/nats-io/nats-server/v2","fixedVersion":"2.12.8"}],"fix":{"url":"https://github.com/nats-io/nats-server/commit/8dcb26eaea78fdcbe96dbee5986d6019fd5cb94a","label":"nats-io/nats-server@8dcb26e"},"references":[{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.11.17"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.12.8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58250.json"},{"type":"ADVISORY","url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58250"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/commit/8dcb26eaea78fdcbe96dbee5986d6019fd5cb94a"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/commit/fc5fe39177533e9dbdd651d2458285bfae1dde27"},{"type":"PACKAGE","url":"https://github.com/nats-io/nats-server"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:42.403560008Z"}}