Skip to content

CVE-2022-29946 NATS Server and Streaming Server fails to enforce negative user permissions, may allow denied subjects

MediumCVSS 6.3 EPSS 0.48% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

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.

Upgrade path

6 packages: 5 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
nats-io github.com/nats-io/nats-server/v2(Go) < 2.8.2; All versions 2.8.2 Partially fixed
debian/nats-server(Debian 12) < 2.9.8-1 2.9.8-1 Fixed
debian/nats-server(Debian 13) < 2.9.8-1 2.9.8-1 Fixed
debian/nats-server(Debian 14) < 2.9.8-1 2.9.8-1 Fixed
nats-io github.com/nats-io/nats-streaming-server(Go) < 0.24.6 0.24.6 Fixed
ubuntu/nats-server(Ubuntu 24.04) < 2.10.7-1; = 2.9.19-1build1; = 2.10.3-1; = 2.10.4-1 2.10.7-1 Fixed

Affected products

ProductAffected versionsFixed in
nats-io github.com/nats-io/nats-server/v2(Go) < 2.8.2 2.8.2
nats-io github.com/nats-io/nats-streaming-server(Go) < 0.24.6 0.24.6
nats-io github.com/nats-io/nats-server/v2(Go) All versions No fix listed
debian/nats-server(Debian:12) < 2.9.8-1 2.9.8-1
debian/nats-server(Debian:14) < 2.9.8-1 2.9.8-1
debian/nats-server(Debian:13) < 2.9.8-1 2.9.8-1
ubuntu/nats-server(Ubuntu:24.04) < 2.10.7-1 2.10.7-1
ubuntu/nats-server(Ubuntu:24.04) = 2.9.19-1build1 No fix listed
ubuntu/nats-server(Ubuntu:24.04) = 2.10.3-1 No fix listed
ubuntu/nats-server(Ubuntu:24.04) = 2.10.4-1 No fix listed

References