{"id":"GHSA-3g5q-cfh2-cq67","summary":"NATS Server: Denial of service via repeated pre-authentication leafnode INFO messages","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: \u003chttps://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67\u003e\n * Credit: Koda Reef","aliases":["BIT-nats-2026-58250","CVE-2026-58250"],"modified":"2026-12-01T21:30:04.219224455Z","published":"2026-12-01T21:20:07Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-12-01T21:20:07Z","nvd_published_at":"2026-07-08T20:16:54Z","cwe_ids":["CWE-476"]},"references":[{"type":"WEB","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":"WEB","url":"https://github.com/nats-io/nats-server/commit/8dcb26eaea78fdcbe96dbee5986d6019fd5cb94a"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/commit/fc5fe39177533e9dbdd651d2458285bfae1dde27"},{"type":"PACKAGE","url":"https://github.com/nats-io/nats-server"},{"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"}],"affected":[{"package":{"name":"github.com/nats-io/nats-server/v2","ecosystem":"Go","purl":"pkg:golang/github.com/nats-io/nats-server/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.11.17"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-3g5q-cfh2-cq67/GHSA-3g5q-cfh2-cq67.json"}},{"package":{"name":"github.com/nats-io/nats-server/v2","ecosystem":"Go","purl":"pkg:golang/github.com/nats-io/nats-server/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.12.0-RC.1"},{"fixed":"2.12.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-3g5q-cfh2-cq67/GHSA-3g5q-cfh2-cq67.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"}]}