CVE-2022-29946 json
NATS Server and Streaming Server fails to enforce negative user permissions, may allow denied subjects
published 2024-07-11 2 y ago modified 2026-06-17 4 mo ago also GHSA-2h2x-8hh2-mfq8 , GO-2024-2980 , EUVD-2024-2224
- cvss
- 6.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 41%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/nats-io/nats-server/v2 2.8.2
- go github.com/nats-io/nats-streaming-server 0.24.6
- nats-server Debian 14, Debian 13, Debian 12 2.9.8-1
debian advisories DEBIAN-CVE-2022-29946
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-29946 updated cvss 5.4
nats-server: Negative user permissions not enforced in one scenario
-
Red Hat OpenShift AI (RHOAI) odh-ml-pipelines-driver-container, odh-ml-pipelines-launcher-container, odh-ml-pipelines-api-server-v2-container, odh-ml-pipelines-persistenceagent-v2-container, odh-ml-pipelines-scheduledworkflow-v2-containeraffected: workaround, no fix available “Recraft user permission rules to only add access, never deny it.”
-
Red Hat Openshift Container Storage 4 ocs4/mcg-rhel8-operator, ocs4/ocs-rhel8-operator, ocs4/ocs-must-gather-rhel8affected: workaround, no fix planned “Recraft user permission rules to only add access, never deny it.”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-contour-rhel8 Red Hat Trusted Profile Analyzer trustification-guacnot affected: vulnerable code not present “Recraft user permission rules to only add access, never deny it.”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.48% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CNA | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/nats-io/nats-server/v2 | <2.8.2 |
2.8.2 |
| go | github.com/nats-io/nats-streaming-server | <0.24.6 |
0.24.6 |
| go | github.com/nats-io/nats-server | all versions |
no fix listed |
Classification
- Weakness
-
- CWE-863 Incorrect Authorization
References
Sources
- CVE List CVE-2022-29946
- GitHub Advisory GHSA-2h2x-8hh2-mfq8
- NVD CVE-2022-29946
- OSV GO-2024-2980
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.