CVE-2022-29946
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Go has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | nats-server | Not affected vulnerable_code_not_present | ||
| Debian 14 | nats-server | Fixed | 2.9.8-1 | DEBIAN-CVE-2022-29946 |
| Debian 13 | nats-server | Fixed | 2.9.8-1 | DEBIAN-CVE-2022-29946 |
| Debian 12 | nats-server | Fixed | 2.9.8-1 | DEBIAN-CVE-2022-29946 |
| Go library | github.com/nats-io/nats-server | Fix pending | GO-2024-2980 | |
| Go library | github.com/nats-io/nats-server/v2 | Fixed | 2.8.2 | GHSA-2h2x-8hh2-mfq8 |
| Go library | github.com/nats-io/nats-streaming-server | Fixed | 0.24.6 | GO-2024-2980 |
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.