CVE-2020-6165: Silverstripe/recipe cms Silverstripe Has Incorrect Default Permissions Vulnerability
MODERATECVE-2020-6165 is a MODERATE (CVSS 5.3) silverstripe has incorrect default permissions vulnerability (CWE-276: Incorrect Default Permissions) affecting Silverstripe/recipe cms libraries in the Packagist ecosystem. The issue involves silverstripe has incorrect default permissions. Remediation is available by upgrading affected packages to version 4.5.3, 3.2.4.
CVE-2020-6165 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:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2020-6165
To remediate this vulnerability, upgrade all affected Silverstripe/recipe cms 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/recipe-cms to 4.5.3
Upgrade silverstripe/graphql to 3.2.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for silverstripe/recipe-cms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-6165, inspect your project dependencies for Silverstripe/recipe cms:
inspect dependencies for silverstripe/recipe-cms
Analyze the terminal output to locate any version of Silverstripe/recipe cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.3), 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-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Silverstripe/recipe cms, 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-6165 Affected Silverstripe/recipe cms Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/recipe-cms
|
Packagist |
≥ 4.5.0
< 4.5.3
|
4.5.3
|
|
silverstripe/graphql
|
Packagist |
≥ 3.2.0
< 3.2.4
|
3.2.4
|
References
Frequently Asked Questions
What is CVE-2020-6165?
Which Silverstripe/recipe cms versions are affected?
What version fixes CVE-2020-6165?
Is silverstripe/recipe-cms affected?
Is silverstripe/graphql affected?
What is the CVSS score of CVE-2020-6165?
What CWE is associated with CVE-2020-6165?
How can I check Packagist dependencies for CVE-2020-6165?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-589q-75r3-mfq4",
"modified" : "2023-07-20T11:13:08Z",
"published" : "2022-05-24T17:23:41Z",
"aliases" : [ "CVE-2020-6165" ],
"summary" : "Silverstripe has Incorrect Default Permissions ",
"details" : "SilverStripe 4.5.0 allows attackers to read certain records that should not have been placed into a result set. This affects silverstripe/recipe-cms. The automatic permission-checking mechanism in the silverstripe/graphql module does not provide complete protection against lists that are limited (e.g., through pagination), resulting in records that should have failed a permission check being added to the final result set. GraphQL endpoints are configured by default (e.g., for assets), but the admin/graphql endpoint is access protected by default. This limits the vulnerability to all authenticated users, including those with limited permissions (e.g., where viewing records exposed through admin/graphql requires administrator permissions). However, if custom GraphQL endpoints have been configured for a specific implementation (usually under /graphql), this vulnerability could also be exploited through unauthenticated requests. This vulnerability only applies to reading records; it does not allow unauthorised changing of records.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/recipe-cms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.5.0"
}, {
"fixed" : "4.5.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/graphql"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.2.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-6165"
}, {
"type" : "WEB",
"url" : "https://docs.silverstripe.org/en/4/changelogs/4.5.3/?_ga=2.170693920.105499209.1689776417-708940272.1689776417"
}, {
"type" : "WEB",
"url" : "https://docs.silverstripe.org/en/4/changelogs/4.6.0/?_ga=2.170693920.105499209.1689776417-708940272.1689776417"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/graphql/CVE-2020-6165.yaml"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/CVE-2020-6165"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-20T11:13:08Z",
"nvd_published_at" : "2020-07-15T21:15:00Z"
}
}