CVE-2020-9283: Golang.org/x/crypto Improper Verification Of Cryptographic Signature Vulnerability
HIGHCVE-2020-9283 is a HIGH (CVSS 7.5) improper verification of cryptographic signature vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Golang.org/x/crypto libraries in the Go ecosystem. The issue involves improper verification of cryptographic signature in golang.org/x/crypto. Remediation is available by upgrading affected packages to version 0.0.0-20200220183623-bac4c82f6975.
CVE-2020-9283 at a Glance
Security Impact
CVSS: 7.5
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:N/I:N/A:H).
How to Fix CVE-2020-9283
To remediate this vulnerability, upgrade all affected Golang.org/x/crypto 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 golang.org/x/crypto to 0.0.0-20200220183623-bac4c82f6975
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for golang.org/x/crypto
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-9283, inspect your project dependencies for Golang.org/x/crypto:
inspect dependencies for golang.org/x/crypto
Analyze the terminal output to locate any version of Golang.org/x/crypto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20200220183623-bac4c82f6975), 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-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Golang.org/x/crypto, 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-2020-9283 Affected Golang.org/x/crypto Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
golang.org/x/crypto
|
Go |
< 0.0.0-20200220183623-bac4c82f6975
|
0.0.0-20200220183623-bac4c82f6975
|
References
Frequently Asked Questions
What is CVE-2020-9283?
Which Golang.org/x/crypto versions are affected?
What version fixes CVE-2020-9283?
Is golang.org/x/crypto affected?
What is the CVSS score of CVE-2020-9283?
What CWE is associated with CVE-2020-9283?
How can I check Go dependencies for CVE-2020-9283?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ffhg-7mh4-33c4",
"modified" : "2023-02-16T00:14:18Z",
"published" : "2021-05-18T15:29:31Z",
"aliases" : [ "CVE-2020-9283" ],
"summary" : "Improper Verification of Cryptographic Signature in golang.org/x/crypto",
"details" : "golang.org/x/crypto before v0.0.0-20200220183623-bac4c82f6975 for Go allows a panic during signature verification in the golang.org/x/crypto/ssh package. A client can attack an SSH server that accepts public keys. Also, a server can attack any SSH client.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "golang.org/x/crypto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20200220183623-bac4c82f6975"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-9283"
}, {
"type" : "WEB",
"url" : "https://github.com/golang/crypto/commit/bac4c82f69751a6dd76e702d54b3ceb88adab236"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/golang/crypto"
}, {
"type" : "WEB",
"url" : "https://go.dev/cl/220357"
}, {
"type" : "WEB",
"url" : "https://go.googlesource.com/crypto/+/bac4c82f69751a6dd76e702d54b3ceb88adab236"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/#!topic/golang-announce/3L45YRc91SY"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/golang-announce/c/3L45YRc91SY"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2020/11/msg00027.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2020/11/msg00031.html"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2020-0012"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/48121"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/156480/Go-SSH-0.0.2-Denial-Of-Service.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-17T22:02:30Z",
"nvd_published_at" : "2020-02-20T20:15:00Z"
}
}