CVE-2021-28661: Silverstripe/graphql SilverStripe GraphQL Server Permission Checker Vulnerability
MODERATECVE-2021-28661 is a MODERATE (CVSS 4.3) silverstripe graphql server permission checker vulnerability (CWE-863: Incorrect Authorization) affecting Silverstripe/graphql libraries in the Packagist ecosystem. The issue involves silverstripe graphql server permission checker not inherited by query subclass.. Remediation is available by upgrading affected packages to version 3.5.2.
CVE-2021-28661 at a Glance
Security Impact
CVSS: 4.3
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:L/I:N/A:N).
How to Fix CVE-2021-28661
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.2
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-2021-28661, 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.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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. 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-2021-28661 Affected Silverstripe/graphql Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/graphql
|
Packagist |
≥ 3.0.0
< 3.5.2
|
3.5.2
|
References
Frequently Asked Questions
What is CVE-2021-28661?
Which Silverstripe/graphql versions are affected?
What version fixes CVE-2021-28661?
Is silverstripe/graphql affected?
What is the CVSS score of CVE-2021-28661?
What CWE is associated with CVE-2021-28661?
How can I check Packagist dependencies for CVE-2021-28661?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r7rh-g777-g5gx",
"modified" : "2021-10-18T14:34:41Z",
"published" : "2021-10-12T18:49:23Z",
"aliases" : [ "CVE-2021-28661" ],
"summary" : "SilverStripe GraphQL Server permission checker not inherited by query subclass.",
"details" : "Default SilverStripe GraphQL Server (aka silverstripe/graphql) 3.x through 3.4.1 permission checker not inherited by query subclass.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/graphql"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.5.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-28661"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-graphql/pull/407/commits/16961459f681f7b32145296189dfdbcc7715e6ed"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/graphql/CVE-2021-28661.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silverstripe/silverstripe-graphql"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-graphql/releases"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-graphql/releases/tag/3.5.2"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/CVE-2021-28661"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-10-08T21:35:47Z",
"nvd_published_at" : "2021-10-07T15:15:00Z"
}
}