CVE-2022-2321: Github.com/heroiclabs/nakama/v3 Improper Restriction Of Excessive Authentication Vulnerability
CRITICALCVE-2022-2321 is a CRITICAL (CVSS 9.8) improper restriction of excessive authentication vulnerability (CWE-307: Improper Restriction of Excessive Authentication Attempts) affecting Github.com/heroiclabs/nakama/v3 libraries in the Go ecosystem. The issue involves improper restriction of excessive authentication attempts. Remediation is available in the latest vendor maintenance releases.
CVE-2022-2321 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-2321
To remediate this vulnerability, upgrade all affected Github.com/heroiclabs/nakama/v3 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/heroiclabs/nakama/v3 to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/heroiclabs/nakama/v3
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-2321, inspect your project dependencies for Github.com/heroiclabs/nakama/v3:
inspect dependencies for github.com/heroiclabs/nakama/v3
Analyze the terminal output to locate any version of Github.com/heroiclabs/nakama/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 CWE-307: Improper Restriction of Excessive Authentication Attempts, where the product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame. In Github.com/heroiclabs/nakama/v3, 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
CVE-2022-2321 Affected Github.com/heroiclabs/nakama/v3 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/heroiclabs/nakama/v3
|
Go |
≤ 3.12.0
|
|
References
Frequently Asked Questions
What is CVE-2022-2321?
Which Github.com/heroiclabs/nakama/v3 versions are affected?
What version fixes CVE-2022-2321?
Is github.com/heroiclabs/nakama/v3 affected?
What is the CVSS score of CVE-2022-2321?
What CWE is associated with CVE-2022-2321?
How can I check Go dependencies for CVE-2022-2321?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8r94-4h3c-939f",
"modified" : "2022-07-15T20:44:32Z",
"published" : "2022-07-06T00:00:26Z",
"aliases" : [ "CVE-2022-2321" ],
"summary" : "Improper Restriction of Excessive Authentication Attempts",
"details" : "Nakama Console does not enforce any limit for the number of unsuccessful login attempts.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/heroiclabs/nakama/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "3.12.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-2321"
}, {
"type" : "WEB",
"url" : "https://github.com/heroiclabs/nakama/pull/878"
}, {
"type" : "WEB",
"url" : "https://github.com/heroiclabs/nakama/commit/e2e02fce80ff33ce45f8a6ebc0b7a99ee0b03824"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/heroiclabs/nakama"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/3055b3f5-6b80-4d47-8e00-3500dfb458bc"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-307" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-06T19:58:27Z",
"nvd_published_at" : "2022-07-05T19:15:00Z"
}
}