All vulnerabilities

Go

CVE-2026-58210

NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packets

Severity
High 7.5
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
2.12.12, 2.14.3
Exploit chance
0.6% in the next 30 daysHigher than 50% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)
Attack
Over the network · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Also known as
BIT-nats-2026-58210, GHSA-r72h-j7qq-v6qg
Sources
OSV.dev and GitHub

Description

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 MQTT clients, including authentication and parsing of MQTT CONNECT packets.

An unauthenticated MQTT client could cause the server to retain large incomplete MQTT CONNECT packets before authentication completed.

The 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.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Deployments not using MQTT are not affected. Deployments that need MQTT should upgrade to a fixed release.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/nats-io/nats-server/v2Go · osv:Go:github.com/nats-io/nats-server/v2
  • Every version before 2.12.12
  • From 2.14.0-RC.1 before 2.14.3

About github.com/nats-io/nats-server/v2

References