CVE-2020-26290: Github.com/dexidp/dex Critical Security Issues Vulnerability
CRITICALCVE-2020-26290 is a CRITICAL (CVSS 9.3) critical security issues vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Github.com/dexidp/dex libraries in the Go ecosystem. The issue involves critical security issues in xml encoding in github.com/dexidp/dex. Remediation is available by upgrading affected packages to version 2.27.0, 1.1.0.
CVE-2020-26290 at a Glance
Security Impact
CVSS: 9.3
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:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2020-26290
To remediate this vulnerability, upgrade all affected Github.com/dexidp/dex 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/dexidp/dex to 2.27.0
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/dexidp/dex
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-26290, inspect your project dependencies for Github.com/dexidp/dex:
inspect dependencies for github.com/dexidp/dex
Analyze the terminal output to locate any version of Github.com/dexidp/dex in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.27.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/dexidp/dex, 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-26290 Affected Github.com/dexidp/dex Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/dexidp/dex
|
Go |
< 2.27.0
|
2.27.0
|
|
github.com/russellhaering/goxmldsig
|
Go |
< 1.1.0
|
1.1.0
|
References
Frequently Asked Questions
What is CVE-2020-26290?
Which Github.com/dexidp/dex versions are affected?
What version fixes CVE-2020-26290?
Is github.com/dexidp/dex affected?
Is github.com/russellhaering/goxmldsig affected?
What is the CVSS score of CVE-2020-26290?
What CWE is associated with CVE-2020-26290?
How can I check Go dependencies for CVE-2020-26290?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m9hp-7r99-94h5",
"modified" : "2021-05-21T20:49:36Z",
"published" : "2021-12-20T17:53:53Z",
"aliases" : [ "CVE-2020-26290" ],
"summary" : "Critical security issues in XML encoding in github.com/dexidp/dex",
"details" : "### Impact\n\nThe following vulnerabilities have been disclosed, which impact users leveraging the SAML connector:\n\nSignature Validation Bypass (CVE-2020-15216): https://github.com/russellhaering/goxmldsig/security/advisories/GHSA-q547-gmf8-8jr7\n\n`encoding/xml` instabilities:\n - [Element namespace prefix instability (CVE-2020-29511)](https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-elements.md)\n - [Attribute namespace prefix instability (CVE-2020-29509)](https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-attributes.md)\n - [Directive comment instability (CVE-2020-29510)](https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-directives.md)\n\n### Patches\n\nImmediately update to [Dex v2.27.0](https://github.com/dexidp/dex/releases/tag/v2.27.0).\n\n### Workarounds\n\nThere are no known workarounds.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/dexidp/dex"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.27.0"
} ]
} ]
}, {
"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/dexidp/dex/security/advisories/GHSA-m9hp-7r99-94h5"
}, {
"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-26290"
}, {
"type" : "WEB",
"url" : "https://github.com/dexidp/dex/commit/324b1c886b407594196113a3dbddebe38eecd4e8"
}, {
"type" : "WEB",
"url" : "https://github.com/russellhaering/goxmldsig/commit/f6188febf0c29d7ffe26a0436212b19cb9615e64"
}, {
"type" : "WEB",
"url" : "https://github.com/dexidp/dex/releases/tag/v2.27.0"
}, {
"type" : "WEB",
"url" : "https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-attributes.md"
}, {
"type" : "WEB",
"url" : "https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-directives.md"
}, {
"type" : "WEB",
"url" : "https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-elements.md"
}, {
"type" : "WEB",
"url" : "https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2020-0050"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-21T20:49:36Z",
"nvd_published_at" : null
}
}