CVE-2024-39223: Github.com/ginuerzh/gost Missing Key Verification Vulnerability
CRITICALCVE-2024-39223 is a CRITICAL (CVSS 9.8) missing key verification vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Github.com/ginuerzh/gost libraries in the Go ecosystem. The issue involves missing key verification in gost. Remediation is available in the latest vendor maintenance releases.
CVE-2024-39223 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-2024-39223
To remediate this vulnerability, upgrade all affected Github.com/ginuerzh/gost 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/ginuerzh/gost 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/ginuerzh/gost
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-39223, inspect your project dependencies for Github.com/ginuerzh/gost:
inspect dependencies for github.com/ginuerzh/gost
Analyze the terminal output to locate any version of Github.com/ginuerzh/gost 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Github.com/ginuerzh/gost, 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-2024-39223 Affected Github.com/ginuerzh/gost Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/ginuerzh/gost
|
Go |
≤ 2.11.5
|
|
References
Frequently Asked Questions
What is CVE-2024-39223?
Which Github.com/ginuerzh/gost versions are affected?
What version fixes CVE-2024-39223?
Is github.com/ginuerzh/gost affected?
What is the CVSS score of CVE-2024-39223?
What CWE is associated with CVE-2024-39223?
How can I check Go dependencies for CVE-2024-39223?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8wxx-35qc-vp6r",
"modified" : "2024-10-25T22:07:23Z",
"published" : "2024-07-03T18:48:20Z",
"aliases" : [ "CVE-2024-39223" ],
"summary" : "Missing key verification in gost",
"details" : "An authentication bypass in the SSH service of gost v2.11.5 allows attackers to intercept communications via setting the HostKeyCallback function to ssh.InsecureIgnoreHostKey",
"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/ginuerzh/gost"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.11.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39223"
}, {
"type" : "WEB",
"url" : "https://github.com/ginuerzh/gost/issues/1034"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/nyxfqq/a7242170b1118e78436a62dee4e09e8a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ginuerzh/gost"
}, {
"type" : "WEB",
"url" : "https://github.com/ginuerzh/gost/blob/729d0e70005607dc7c69fc1de62fd8fe21f85355/ssh.go#L229"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-289", "CWE-639" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-25T22:07:23Z",
"nvd_published_at" : "2024-07-03T15:15:06Z"
}
}