CVE-2020-15216: Github.com/russellhaering/goxmldsig Github.com/russellhaering/goxmldsig Vulnerable To Signature Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-q547-gmf8-8jr7
CVSS 5.3
CWE-347
Published
Advisory Summary

CVE-2020-15216 is a MODERATE (CVSS 5.3) github.com/russellhaering/goxmldsig vulnerable to signature validation vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Github.com/russellhaering/goxmldsig libraries in the Go ecosystem. The issue involves github.com/russellhaering/goxmldsig vulnerable to signature validation bypass. Remediation is available by upgrading affected packages to version 1.1.0.

CVE-2020-15216 at a Glance

CVE Identifier CVE-2020-15216
GHSA Identifier GHSA-q547-gmf8-8jr7
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Github.com/russellhaering/goxmldsig
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-15216

To remediate this vulnerability, upgrade all affected Github.com/russellhaering/goxmldsig dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/russellhaering/goxmldsig fixed: 1.1.0
Upgrade github.com/russellhaering/goxmldsig to 1.1.0
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 github.com/russellhaering/goxmldsig

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-15216, inspect your project dependencies for Github.com/russellhaering/goxmldsig:

inspect dependencies for github.com/russellhaering/goxmldsig

Analyze the terminal output to locate any version of Github.com/russellhaering/goxmldsig in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), 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 Github.com/russellhaering/goxmldsig, 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

### Impact With a carefully crafted XML file, an attacker can completely bypass signature validation and pass off an altered file as a signed one. ### Patches A patch is available, all users of goxmldsig should upgrade to v1.1.0. ### For more information If you have any questions or comments about this advisory open an issue at https://github.com/russellhaering/goxmldsig

CVE-2020-15216 Affected Github.com/russellhaering/goxmldsig Versions

1 component(s)
Fixed Versions:
1.1.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/russellhaering/goxmldsig
Go
< 1.1.0
1.1.0

References

Frequently Asked Questions

What is CVE-2020-15216?
CVE-2020-15216 is a security vulnerability in Github.com/russellhaering/goxmldsig involving github.com/russellhaering/goxmldsig vulnerable to Signature Validation Bypass under CWE-347: Improper Verification of Cryptographic Signature.
Which Github.com/russellhaering/goxmldsig versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: github.com/russellhaering/goxmldsig.
What version fixes CVE-2020-15216?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/russellhaering/goxmldsig affected?
Yes, github.com/russellhaering/goxmldsig is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What is the CVSS score of CVE-2020-15216?
CVE-2020-15216 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2020-15216?
CVE-2020-15216 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-15216?
Run the dependency tree command: 'inspect dependencies for github.com/russellhaering/goxmldsig'. 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-q547-gmf8-8jr7",
  "modified" : "2023-08-29T23:34:28Z",
  "published" : "2021-05-24T16:57:32Z",
  "aliases" : [ "CVE-2020-15216" ],
  "summary" : "github.com/russellhaering/goxmldsig vulnerable to Signature Validation Bypass",
  "details" : "### Impact\nWith a carefully crafted XML file, an attacker can completely bypass signature validation and pass off an altered file as a signed one. \n\n### Patches\nA patch is available, all users of goxmldsig should upgrade to v1.1.0.\n\n### For more information\nIf you have any questions or comments about this advisory open an issue at https://github.com/russellhaering/goxmldsig",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/russellhaering/goxmldsig"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/russellhaering/goxmldsig/security/advisories/GHSA-q547-gmf8-8jr7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15216"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/russellhaering/goxmldsig/commit/f6188febf0c29d7ffe26a0436212b19cb9615e64"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GUH33FPUXED3FHYL25BJOQPRKFGPOMS2"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZECBFD4M4PHBMBOCMSQ537NOU37QOVWP"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/github.com/russellhaering/goxmldsig?tab=overview"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2020-0050"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-24T12:54:31Z",
    "nvd_published_at" : "2020-09-29T16:15:00Z"
  }
}