NATS Server flaw enables unauthenticated memory exhaustion via incomplete MQTT packets

  • NATS Server
  • memory exhaustion
  • MQTT

Unauthenticated users could exploit incomplete MQTT packets

Fixes available in versions 2.12.12 and 2.14.3

Deployments not using MQTT remain unaffected

NATS Server has a vulnerability that can cause memory exhaustion when it receives incomplete MQTT CONNECT packets, without requiring authentication.

The flaw affects NATS Server v2.12.11 and earlier, as well as v2.14.2. GitHub’s advisory says deployments that do not use MQTT are not affected.

The issue is fixed in NATS Server 2.12.12 and 2.14.3. Deployments that need MQTT are advised to upgrade to a fixed version.