GHSA-rrfw-hg9m-j47h: Github.com/russellhaering/goxmldsig Signature Validation Bypass Vulnerability
CRITICALGHSA-rrfw-hg9m-j47h is a CRITICAL signature validation bypass vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Github.com/russellhaering/goxmldsig libraries in the Go ecosystem. The issue involves signature validation bypass. Remediation is available by upgrading affected packages to version 0.4.2.
GHSA-rrfw-hg9m-j47h at a Glance
How to Fix GHSA-rrfw-hg9m-j47h
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 0.4.2
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 GHSA-rrfw-hg9m-j47h, 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 0.4.2), 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
GHSA-rrfw-hg9m-j47h Affected Github.com/russellhaering/goxmldsig Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/russellhaering/goxmldsig
|
Go |
< 0.4.2
|
0.4.2
|
References
Frequently Asked Questions
What is GHSA-rrfw-hg9m-j47h?
Which Github.com/russellhaering/goxmldsig versions are affected?
What version fixes GHSA-rrfw-hg9m-j47h?
Is github.com/russellhaering/goxmldsig affected?
What CWE is associated with GHSA-rrfw-hg9m-j47h?
How can I check Go dependencies for GHSA-rrfw-hg9m-j47h?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rrfw-hg9m-j47h",
"modified" : "2021-10-08T21:25:26Z",
"published" : "2021-05-24T16:59:42Z",
"aliases" : [ ],
"summary" : "Signature Validation Bypass",
"details" : "### Impact\n\nAn authentication bypass exists in the [goxmldsig](https://github.com/russellhaering/goxmldsig/security/advisories/GHSA-q547-gmf8-8jr7) this library uses to determine if SAML assertions are genuine. An attacker could craft a SAML response that would appear to be valid but would not have been genuinely issued by the IDP.\n\n### Patches\n\nVersion 0.4.2 bumps the dependency which should fix the issue.\n\n### For more information\n\nPlease see [the advisory in goxmldsig](https://github.com/russellhaering/goxmldsig/security/advisories/GHSA-q547-gmf8-8jr7)\n\n## Credits\n\nThe original vulnerability was discovered by @jupenur. Thanks to @russellhaering for the heads up.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/russellhaering/goxmldsig"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.4.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/crewjam/saml/security/advisories/GHSA-rrfw-hg9m-j47h"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/russellhaering/goxmldsig"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-21T22:23:03Z",
"nvd_published_at" : null
}
}