CVE-2020-9283: Golang.org/x/crypto Improper Verification Of Cryptographic Signature Vulnerability

HIGH
Advisory Identifier: GHSA-ffhg-7mh4-33c4
CVSS 7.5
CWE-347
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2020-9283
GHSA Identifier GHSA-ffhg-7mh4-33c4
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Golang.org/x/crypto
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

golang.org/x/crypto fixed: 0.0.0-20200220183623-bac4c82f6975
Upgrade golang.org/x/crypto to 0.0.0-20200220183623-bac4c82f6975
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 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

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.

CVE-2020-9283 Affected Golang.org/x/crypto Versions

1 component(s)
Fixed Versions:
0.0.0-20200220183623-bac4c82f6975
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?
CVE-2020-9283 is a security vulnerability in Golang.org/x/crypto involving Improper Verification of Cryptographic Signature in golang.org/x/crypto under CWE-347: Improper Verification of Cryptographic Signature.
Which Golang.org/x/crypto versions are affected?
Affected versions include releases prior to 0.0.0-20200220183623-bac4c82f6975 across affected packages: golang.org/x/crypto.
What version fixes CVE-2020-9283?
Upgrading to 0.0.0-20200220183623-bac4c82f6975 (or the latest patched release for your respective branch) resolves the vulnerability.
Is golang.org/x/crypto affected?
Yes, golang.org/x/crypto is affected in releases prior to 0.0.0-20200220183623-bac4c82f6975. Upgrade your dependency to 0.0.0-20200220183623-bac4c82f6975 or later.
What is the CVSS score of CVE-2020-9283?
CVE-2020-9283 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2020-9283?
CVE-2020-9283 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check Go dependencies for CVE-2020-9283?
Run the dependency tree command: 'inspect dependencies for golang.org/x/crypto'. 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-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"
  }
}