CVE-2022-29946: NATS Server and Streaming Server fails to enforce negative user permissions, may allow denied subjects
NATS.io NATS Server before 2.8.2 and Streaming Server before 0.24.6 could allow a remote attacker to bypass security restrictions, caused by the failure to enforce negative user permissions in one scenario. By using a queue subscription on the wildcard, an attacker could exploit this vulnerability to allow denied subjects.
Published Jul 11, 2024 · Updated Oct 30, 2024
Affected packages
github.com/nats-io/nats-server/v2
- Ecosystem
- Go
- Affected
- < 2.8.2
- Fixed in
- 2.8.2
- Check
go list -m github.com/nats-io/nats-server/v2
github.com/nats-io/nats-streaming-server
- Ecosystem
- Go
- Affected
- < 0.24.6
- Fixed in
- 0.24.6
- Check
go list -m github.com/nats-io/nats-streaming-server
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
NATS.io NATS Server before 2.8.2 and Streaming Server before 0.24.6 could allow a remote attacker to bypass security restrictions, caused by the failure to enforce negative user permissions in one scenario. By using a queue subscription on the wildcard, an attacker could exploit this vulnerability to allow denied subjects.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-58208
NATS Server: MQTT-over-WebSocket Path Can Crash WebSocket-Only JetStream Servers Before MQTT Is Enabled
medium6.8Nov 20, 2026CVE-2026-58209
NATS Server MQTT retained messages and QoS replay bypass subscription deny rules
medium4.3Nov 20, 2026CVE-2026-58210
NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packets
high7.5Nov 20, 2026CVE-2026-58254
nats-server Leaf node connections bypass Nats-Trace-Dest permission check
medium6.5Nov 20, 2026CVE-2026-58213
NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
high7.1Nov 19, 2026CVE-2026-58214
NATS Server MQTT subscribe permission bypass exposes internal QoS 2 metadata
medium4.3Nov 19, 2026
