GHSA-4frv-5fj6-4p25: Duplicate Advisory NATS.io: Adding Accounts For Just Vulnerability
MODERATEGHSA-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
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.
Upgrade github.com/nats-io/nats-server/v2 to 2.9.23
Upgrade github.com/nats-io/nats-server/v2 to 2.10.2
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
GHSA-4frv-5fj6-4p25 Affected Duplicate Advisory Versions
2 component(s)| 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?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-4frv-5fj6-4p25?
Is github.com/nats-io/nats-server/v2 affected?
What CWE is associated with GHSA-4frv-5fj6-4p25?
How can I check Go dependencies for GHSA-4frv-5fj6-4p25?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}