Skip to content

NATS Server and Streaming Server fails to enforce negative user permissions, may allow denied subjects

Moderate severity GitHub Reviewed Published Jul 11, 2024 to the GitHub Advisory Database • Updated Aug 1, 2024

Package

gomod github.com/nats-io/nats-server (Go)

Affected versions

> 0

Patched versions

None
gomod github.com/nats-io/nats-server/v2 (Go)
< 2.8.2
2.8.2
gomod github.com/nats-io/nats-streaming-server (Go)
< 0.24.6
0.24.6

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.

References

Published by the National Vulnerability Database Jul 11, 2024
Published to the GitHub Advisory Database Jul 11, 2024
Reviewed Jul 12, 2024
Last updated Aug 1, 2024

Severity

Moderate
6.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Weaknesses

CVE ID

CVE-2022-29946

GHSA ID

GHSA-2h2x-8hh2-mfq8

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.