CVE-2020-6165: Silverstripe/recipe cms Silverstripe Has Incorrect Default Permissions Vulnerability

MODERATE
Advisory Identifier: GHSA-589q-75r3-mfq4
CVSS 5.3
CWE-276
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2020-6165
GHSA Identifier GHSA-589q-75r3-mfq4
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-276: Incorrect Default Permissions
Affected Product Silverstripe/recipe cms
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

silverstripe/recipe-cms fixed: 4.5.3
Upgrade silverstripe/recipe-cms to 4.5.3
silverstripe/graphql fixed: 3.2.4
Upgrade silverstripe/graphql to 3.2.4
Verify Direct and Transitive Dependencies

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

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.

CVE-2020-6165 Affected Silverstripe/recipe cms Versions

2 component(s)
Fixed Versions:
4.5.33.2.4
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?
CVE-2020-6165 is a security vulnerability in Silverstripe/recipe cms involving Silverstripe has Incorrect Default Permissions under CWE-276: Incorrect Default Permissions.
Which Silverstripe/recipe cms versions are affected?
Affected versions include releases prior to 4.5.3, 3.2.4 across affected packages: silverstripe/recipe-cms, silverstripe/graphql.
What version fixes CVE-2020-6165?
Upgrading to 4.5.3, 3.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/recipe-cms affected?
Yes, silverstripe/recipe-cms is affected in releases prior to 4.5.3. Upgrade your dependency to 4.5.3 or later.
Is silverstripe/graphql affected?
Yes, silverstripe/graphql is affected in releases prior to 3.2.4. Upgrade your dependency to 3.2.4 or later.
What is the CVSS score of CVE-2020-6165?
CVE-2020-6165 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2020-6165?
CVE-2020-6165 is classified under CWE-276: Incorrect Default Permissions (During installation, installed file permissions are set to allow anyone to modify those files.).
How can I check Packagist dependencies for CVE-2020-6165?
Run the dependency tree command: 'inspect dependencies for silverstripe/recipe-cms'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}