{"id":"GHSA-r72h-j7qq-v6qg","summary":"NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packets","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 MQTT clients, including authentication and parsing of MQTT `CONNECT` packets.\n\n### Problem Description\n\nAn unauthenticated MQTT client could cause the server to retain large incomplete MQTT `CONNECT` packets before authentication completed.\n\nThe parser retained partial pre-authentication packet data while waiting for the advertised MQTT packet length to be completed. An attacker could therefore consume server memory until authentication timeouts closed the connections.\n\n### Affected Versions\n\nVersions v2.14.2, v2.12.11 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.12.\n\n### Workarounds\n\nDeployments not using MQTT are not affected. Deployments that need MQTT should upgrade to a fixed release.\n\n### References\n\n * GHSA advisory: \u003chttps://github.com/nats-io/nats-server/security/advisories/GHSA-r72h-j7qq-v6qg\u003e\n * Credit: Asritha Bodepudi, Trail of Bits","aliases":["BIT-nats-2026-58210","CVE-2026-58210"],"modified":"2026-11-20T00:15:06.373362932Z","published":"2026-11-20T00:04:46Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-11-20T00:04:46Z","nvd_published_at":"2026-07-08T20:16:53Z","cwe_ids":["CWE-400"]},"references":[{"type":"WEB","url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-r72h-j7qq-v6qg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58210"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/commit/bce9ef39469e610aeddb819194ceb7f7edfc0861"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/commit/e016e47bbf70304945f2ae9dc397e4862adefaf5"},{"type":"PACKAGE","url":"https://github.com/nats-io/nats-server"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.12.12"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.14.3"}],"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.12.12"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-r72h-j7qq-v6qg/GHSA-r72h-j7qq-v6qg.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.14.0-RC.1"},{"fixed":"2.14.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-r72h-j7qq-v6qg/GHSA-r72h-j7qq-v6qg.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}