CVE-2022-28357: NATS nats-server allows directory traversal via unintended path to a management action

CVE-2022-28357 · Severity: low · CVSS 3.1 · Published 2024-08-21

NATS nats-server allows directory traversal via unintended path to a management action in github.com/nats-io/nats-server

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

Quick answers

Is CVE-2022-28357 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-28357 being exploited in the wild.
How severe is CVE-2022-28357?
Low severity, with a CVSS score of 3.1, published 21 August 2024.
Which products and versions are affected?
github.com/nats-io/nats-server (Go) SEMVER:introduced=0, SEMVER:introduced=2.2.0,fixed=2.7.4; github.com/nats-io/nats-server/v2 (Go) SEMVER:introduced=2.2.0,fixed=2.7.4.
Is there a fix for CVE-2022-28357?
Yes. github.com/nats-io/nats-server (Go): upgrade to 2.7.4 or later; github.com/nats-io/nats-server/v2 (Go): upgrade to 2.7.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-28357?
Check whether you run github.com/nats-io/nats-server (Go) or github.com/nats-io/nats-server/v2 (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 (Go): upgrade to 2.7.4 or later
    go get github.com/nats-io/nats-server@v2.7.4
  • github.com/nats-io/nats-server/v2 (Go): upgrade to 2.7.4 or later
    go get github.com/nats-io/nats-server/v2@v2.7.4

Affected products

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

Identifiers

  • CVE-2022-28357
  • GHSA-vpjc-4jcv-jc29
  • GO-2023-2066

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