Uncontrolled Memory Allocation in nats-server - #VU166207
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote user to cause a denial of service by exhausting server memory or stalling message delivery.
The vulnerability exists due to memory allocation with an excessive size value in the NATS Server subscription-matching functionality when matching messages using queue subscription weights advertised by peers. A remote user can advertise a specially crafted queue subscription weight over a route or leafnode connection accepted by the server to trigger excessive memory allocation while a subscription-list lock is held, stalling message delivery or terminating the server through memory exhaustion.