CVE-2020-26136: Silverstripe/graphql Authentication Bypass Vulnerability
MODERATECVE-2020-26136 is a MODERATE (CVSS 6.5) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Silverstripe/graphql libraries in the Packagist ecosystem. The issue involves authentication bypass in silverstripe graphql. Remediation is available by upgrading affected packages to version 3.5.0, 4.0.0-alpha2.
CVE-2020-26136 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2020-26136
To remediate this vulnerability, upgrade all affected Silverstripe/graphql 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 silverstripe/graphql to 3.5.0
Upgrade silverstripe/graphql to 4.0.0-alpha2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for silverstripe/graphql
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-26136, inspect your project dependencies for Silverstripe/graphql:
inspect dependencies for silverstripe/graphql
Analyze the terminal output to locate any version of Silverstripe/graphql in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.5.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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Silverstripe/graphql, 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-26136 Affected Silverstripe/graphql Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/graphql
|
Packagist |
≥ 3.0.0
< 3.5.0
|
3.5.0
|
|
silverstripe/graphql
|
Packagist |
≥ 4.0.0-alpha1
< 4.0.0-alpha2
|
4.0.0-alpha2
|
References
Frequently Asked Questions
What is CVE-2020-26136?
Which Silverstripe/graphql versions are affected?
What version fixes CVE-2020-26136?
Is silverstripe/graphql affected?
What is the CVSS score of CVE-2020-26136?
What CWE is associated with CVE-2020-26136?
How can I check Packagist dependencies for CVE-2020-26136?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mg2g-8pwj-r2j2",
"modified" : "2022-03-15T16:38:13Z",
"published" : "2021-06-10T17:21:33Z",
"aliases" : [ "CVE-2020-26136" ],
"summary" : "Authentication bypass in SilverStripe GraphQL",
"details" : "The GraphQL module accepts basic-auth as an authentication method by default. This can be used to bypass MFA authentication if the silverstripe/mfa module is installed, which is now a commonly installed module. A users password is still required though.\n\nBasic-auth has been removed as a default authentication method. If desired, it can be re-enabled by adding it to the authenticators key of a schema, or on SilverStripe\\Graphql\\Auth\\Handler",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/graphql"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.5.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/graphql"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0-alpha1"
}, {
"fixed" : "4.0.0-alpha2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26136"
}, {
"type" : "WEB",
"url" : "https://forum.silverstripe.org/c/releases"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/graphql/CVE-2020-26136.yaml"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/blog/tag/release"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/cve-2020-26136"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287", "CWE-288" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-10T14:41:10Z",
"nvd_published_at" : "2021-06-08T20:15:00Z"
}
}