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

CVE-2022-29946 · Severity: low · CVSS 3.1 · Published 2024-07-12

NATS Server and Streaming Server fails to enforce negative user permissions, may allow denied subjects in github.com/nats-io/nats-server

Technologies: github.com/nats-io/nats-server (Go), github.com/nats-io/nats-server/v2 (Go), github.com/nats-io/nats-streaming-server (Go). Vendors: Go.

Quick answers

Is CVE-2022-29946 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-29946 being exploited in the wild.
How severe is CVE-2022-29946?
Low severity, with a CVSS score of 3.1, published 12 July 2024.
Which products and versions are affected?
github.com/nats-io/nats-server (Go) SEMVER:introduced=0; github.com/nats-io/nats-server/v2 (Go) SEMVER:introduced=0,fixed=2.8.2; github.com/nats-io/nats-streaming-server (Go) SEMVER:introduced=0,fixed=0.24.6.
Is there a fix for CVE-2022-29946?
Yes. github.com/nats-io/nats-server/v2 (Go): upgrade to 2.8.2 or later; github.com/nats-io/nats-streaming-server (Go): upgrade to 0.24.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-29946?
Check whether you run github.com/nats-io/nats-server (Go), github.com/nats-io/nats-server/v2 (Go) or github.com/nats-io/nats-streaming-server (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/nats-io/nats-server/v2 (Go): upgrade to 2.8.2 or later
    go get github.com/nats-io/nats-server/v2@v2.8.2
  • github.com/nats-io/nats-streaming-server (Go): upgrade to 0.24.6 or later
    go get github.com/nats-io/nats-streaming-server@v0.24.6

Affected products

  • github.com/nats-io/nats-server (Go) SEMVER:introduced=0
  • github.com/nats-io/nats-server/v2 (Go) SEMVER:introduced=0,fixed=2.8.2
  • github.com/nats-io/nats-streaming-server (Go) SEMVER:introduced=0,fixed=0.24.6

Identifiers

  • CVE-2022-29946
  • GHSA-2h2x-8hh2-mfq8
  • GO-2024-2980

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.