GHSA-3mm9-2p44-rw39: Silverstripe/cms Silverstripe SiteTree Creation Permission Vulnerability Vulnerability

HIGH
CVSS 7.5
CWE-863
Published
Advisory Summary

GHSA-3mm9-2p44-rw39 is a HIGH (CVSS 7.5) silverstripe sitetree creation permission vulnerability vulnerability (CWE-863: Incorrect Authorization) affecting Silverstripe/cms libraries in the Packagist ecosystem. The issue involves silverstripe sitetree creation permission vulnerability. Remediation is available by upgrading affected packages to version 3.0.12, 3.1.11.

GHSA-3mm9-2p44-rw39 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3mm9-2p44-rw39
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-863: Incorrect Authorization
Affected Product Silverstripe/cms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/I:H/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 None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-3mm9-2p44-rw39

To remediate this vulnerability, upgrade all affected Silverstripe/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/cms fixed: 3.0.12
Upgrade silverstripe/cms to 3.0.12
silverstripe/cms fixed: 3.1.11
Upgrade silverstripe/cms to 3.1.11
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/cms

How to Check if You Are Affected

To determine whether your application is affected by GHSA-3mm9-2p44-rw39, inspect your project dependencies for Silverstripe/cms:

inspect dependencies for silverstripe/cms

Analyze the terminal output to locate any version of Silverstripe/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.12), 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/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

A vulnerability exists in the permission validation for SiteTree object creation. By default user permissions are not validated by the SiteTree::canCreate method, unless overridden by user code or via the configuration system. This vulnerability will allow users, or unauthenticated guests, to create new SiteTree objects in the database. This vulnerability is present when such users are given CMS access via other means, or if there is another mechanism (such as RestfulServer module) which allows model editing and relies on model-level permission checks. This vulnerability is restricted to the creation of draft or live pages, and does not allow users to edit, publish, or unpublish existing pages. All users should upgrade as soon as possible.

GHSA-3mm9-2p44-rw39 Affected Silverstripe/cms Versions

2 component(s)
Fixed Versions:
3.0.123.1.11
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/cms
Packagist
≥ 3.0.0
< 3.0.12
3.0.12
silverstripe/cms
Packagist
≥ 3.1.0
< 3.1.11
3.1.11

References

Frequently Asked Questions

What is GHSA-3mm9-2p44-rw39?
GHSA-3mm9-2p44-rw39 is a security vulnerability in Silverstripe/cms involving Silverstripe SiteTree Creation Permission Vulnerability under CWE-863: Incorrect Authorization.
Which Silverstripe/cms versions are affected?
Affected versions include releases prior to 3.0.12, 3.1.11 across affected packages: silverstripe/cms.
What version fixes GHSA-3mm9-2p44-rw39?
Upgrading to 3.0.12, 3.1.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/cms affected?
Yes, silverstripe/cms is affected in releases prior to 3.0.12, 3.1.11. Upgrade your dependency to 3.0.12, 3.1.11 or later.
What is the CVSS score of GHSA-3mm9-2p44-rw39?
GHSA-3mm9-2p44-rw39 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with GHSA-3mm9-2p44-rw39?
GHSA-3mm9-2p44-rw39 is classified under CWE-863: Incorrect Authorization (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.).
How can I check Packagist dependencies for GHSA-3mm9-2p44-rw39?
Run the dependency tree command: 'inspect dependencies for silverstripe/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-3mm9-2p44-rw39",
  "modified" : "2024-05-22T19:03:54Z",
  "published" : "2024-05-22T19:03:54Z",
  "aliases" : [ ],
  "summary" : "Silverstripe SiteTree Creation Permission Vulnerability",
  "details" : "A vulnerability exists in the permission validation for SiteTree object creation. By default user permissions are not validated by the SiteTree::canCreate method, unless overridden by user code or via the configuration system.\n\nThis vulnerability will allow users, or unauthenticated guests, to create new SiteTree objects in the database. This vulnerability is present when such users are given CMS access via other means, or if there is another mechanism (such as RestfulServer module) which allows model editing and relies on model-level permission checks.\n\nThis vulnerability is restricted to the creation of draft or live pages, and does not allow users to edit, publish, or unpublish existing pages.\n\nAll users should upgrade as soon as possible.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.12"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.11"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-cms/commit/3df41e1176385215f15fffb04fcba033a5151fb4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-cms/commit/64955e57d1239975183f47d3ac8c3e801ddbf122"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/cms/SS-2015-008-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/silverstripe/silverstripe-cms"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/software/download/security-releases/ss-2015-008-sitetree-creation-permission-vulnerability"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-22T19:03:54Z",
    "nvd_published_at" : null
  }
}