CVE-2020-15216: Github.com/russellhaering/goxmldsig Github.com/russellhaering/goxmldsig Vulnerable To Signature Validation Vulnerability
MODERATECVE-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
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).
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.
Upgrade github.com/russellhaering/goxmldsig to 1.1.0
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
CVE-2020-15216 Affected Github.com/russellhaering/goxmldsig Versions
1 component(s)| 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?
Which Github.com/russellhaering/goxmldsig versions are affected?
What version fixes CVE-2020-15216?
Is github.com/russellhaering/goxmldsig affected?
What is the CVSS score of CVE-2020-15216?
What CWE is associated with CVE-2020-15216?
How can I check Go dependencies for CVE-2020-15216?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}