GHSA-4frv-5fj6-4p25: Duplicate Advisory NATS.io: Adding Accounts For Just Vulnerability

MODERATE
Published
Advisory Summary

GHSA-4frv-5fj6-4p25 is a MODERATE nats.io: adding accounts for just vulnerability (General Security Weakness) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves nats.io: adding accounts for just the system account adds auth bypass. Remediation is available by upgrading affected packages to version 2.9.23, 2.10.2.

GHSA-4frv-5fj6-4p25 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4frv-5fj6-4p25
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-4frv-5fj6-4p25

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/nats-io/nats-server/v2 fixed: 2.9.23
Upgrade github.com/nats-io/nats-server/v2 to 2.9.23
github.com/nats-io/nats-server/v2 fixed: 2.10.2
Upgrade github.com/nats-io/nats-server/v2 to 2.10.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/nats-io/nats-server/v2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-4frv-5fj6-4p25, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for github.com/nats-io/nats-server/v2

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.23), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-fr2g-9hjm-wr23. This link is maintained to preserve external references. ## Original Description NATS nats-server before 2.9.23 and 2.10.x before 2.10.2 has an authentication bypass. An implicit $G user in an authorization block can sometimes be used for unauthenticated access, even when the intention of the configuration was for each user to have an account. The earliest affected version is 2.2.0.

GHSA-4frv-5fj6-4p25 Affected Duplicate Advisory Versions

2 component(s)
Fixed Versions:
2.9.232.10.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/nats-io/nats-server/v2
Go
≥ 2.2.0
< 2.9.23
2.9.23
github.com/nats-io/nats-server/v2
Go
≥ 2.10.0
< 2.10.2
2.10.2

References

Frequently Asked Questions

What is GHSA-4frv-5fj6-4p25?
GHSA-4frv-5fj6-4p25 is a security vulnerability in Duplicate Advisory involving NATS.io: Adding accounts for just the system account adds auth bypass under General Security Weakness.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 2.9.23, 2.10.2 across affected packages: github.com/nats-io/nats-server/v2.
What version fixes GHSA-4frv-5fj6-4p25?
Upgrading to 2.9.23, 2.10.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/nats-io/nats-server/v2 affected?
Yes, github.com/nats-io/nats-server/v2 is affected in releases prior to 2.9.23, 2.10.2. Upgrade your dependency to 2.9.23, 2.10.2 or later.
What CWE is associated with GHSA-4frv-5fj6-4p25?
GHSA-4frv-5fj6-4p25 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-4frv-5fj6-4p25?
Run the dependency tree command: 'inspect dependencies for github.com/nats-io/nats-server/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4frv-5fj6-4p25",
  "modified" : "2023-10-31T22:24:49Z",
  "published" : "2023-10-30T18:30:25Z",
  "withdrawn" : "2023-10-31T22:24:21Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: NATS.io: Adding accounts for just the system account adds auth bypass",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-fr2g-9hjm-wr23. This link is maintained to preserve external references.\n\n## Original Description\nNATS nats-server before 2.9.23 and 2.10.x before 2.10.2 has an authentication bypass. An implicit $G user in an authorization block can sometimes be used for unauthenticated access, even when the intention of the configuration was for each user to have an account. The earliest affected version is 2.2.0.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/nats-io/nats-server/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.9.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/nats-io/nats-server/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.10.0"
      }, {
        "fixed" : "2.10.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nats-io/nats-server/security/advisories/GHSA-fr2g-9hjm-wr23"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-47090"
  }, {
    "type" : "WEB",
    "url" : "https://www.openwall.com/lists/oss-security/2023/10/13/2"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2023/10/30/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-31T22:24:21Z",
    "nvd_published_at" : "2023-10-30T17:15:52Z"
  }
}