{"id":"CVE-2026-58250","aliases":["CVE-2026-58250","GHSA-3g5q-cfh2-cq67","BIT-NATS-2026-58250"],"related":[],"kind":"vulnerability","state":"published","title":"NATS Server: Pre-auth server crash via double INFO in leafnode handshake","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"es","text":"NATS Server es un servidor de alto rendimiento para NATS.io, el sistema de mensajería nativo de la nube y del borde. Antes de las versiones 2.12.8 y 2.11.17, un par no autenticado con acceso de red a un oyente de nodo hoja con compresión habilitada podría bloquear el servidor durante el handshake de nodo hoja previo a la autenticación al enviar mensajes de protocolo INFO de nodo hoja repetidos antes de que la autenticación y la configuración de la cuenta se completaran. Este problema está solucionado en las versiones 2.12.8 y 2.11.17.","source":"nvd"}],"published":"2026-07-08T19:48:55.058Z","modified":"2026-12-01T21:30:04.219Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","score":8.6,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":"< 2.11.17","status":"affected"},{"version":">= 2.12.0-preview.1, < 2.12.8","status":"affected"}],"vendor":"nats-io","product":"nats-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.17"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.12.0-RC.1","status":"affected","fixed":"2.12.8"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.11.17"},{"status":"affected","introduced":"2.12.0","fixed":"2.12.8"}],"vendor":"linuxfoundation","product":"nats-server","cpe":"cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.17"},{"type":"semver","introduced":"2.12.0","status":"affected","fixed":"2.12.8"}],"ecosystem":"Bitnami","package":"nats","purl":"pkg:bitnami/nats","source":"bitnami"}],"references":[{"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/nats-io/nats-server/commit/8dcb26eaea78fdcbe96dbee5986d6019fd5cb94a","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/nats-io/nats-server/commit/fc5fe39177533e9dbdd651d2458285bfae1dde27","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/nats-io/nats-server/releases/tag/v2.11.17","tags":["article","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/nats-io/nats-server/releases/tag/v2.12.8","tags":["article","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58250","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/nats-io/nats-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-09T13:33:35.375Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-58250","url":"https://www.cve.org/CVERecord?id=CVE-2026-58250","licence":"CVE Terms of Use","modified":"2026-07-09T13:33:45.059Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3g5q-cfh2-cq67","url":"https://github.com/advisories/GHSA-3g5q-cfh2-cq67","licence":"CC-BY-4.0","modified":"2026-12-01T21:30:04.219Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-58250","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58250","licence":"Public domain","modified":"2026-10-25T17:10:00.197Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-NATS-2026-58250","url":"https://osv.dev/vulnerability/BIT-NATS-2026-58250","licence":"Apache-2.0","modified":"2026-09-29T10:00:06.205Z"}],"updatedAt":"2026-12-01T22:07:08.884Z","epss":{"score":0.00505,"percentile":0.44722,"date":"2026-12-01T12:00:22.000Z"}}