CVE-2022-42949: Silverstripe/subsites SilverStripe Subsite Weakens File Permissions Vulnerability

MODERATE
Advisory Identifier: GHSA-cx45-565q-6qx8
CVSS 5.4
CWE-732
Published
Advisory Summary

CVE-2022-42949 is a MODERATE (CVSS 5.4) silverstripe subsite weakens file permissions vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Silverstripe/subsites libraries in the Packagist ecosystem. The issue involves silverstripe subsite weakens file permissions. Remediation is available by upgrading affected packages to version 2.6.1.

CVE-2022-42949 at a Glance

CVE Identifier CVE-2022-42949
GHSA Identifier GHSA-cx45-565q-6qx8
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Silverstripe/subsites
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

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:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2022-42949

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

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-42949, inspect your project dependencies for Silverstripe/subsites:

inspect dependencies for silverstripe/subsites

Analyze the terminal output to locate any version of Silverstripe/subsites in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.1), 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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Silverstripe/subsites, 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

The subsites module can weaken edit restrictions on some files and allow a malicious user to edit files they do not have edit rights to. This only affects projects with the subsites module installed. Regression testing should focus on custom file logic. Be advised that this is not a case of a user being able to edit a file in subsites they do not have access to. As a reminder, all separation of content achieved with the subsites module should be viewed as cosmetic and not appropriate for security-critical applications.

CVE-2022-42949 Affected Silverstripe/subsites Versions

1 component(s)
Fixed Versions:
2.6.1
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/subsites
Packagist
≥ 2.0.0
< 2.6.1
2.6.1

References

Frequently Asked Questions

What is CVE-2022-42949?
CVE-2022-42949 is a security vulnerability in Silverstripe/subsites involving SilverStripe Subsite weakens file permissions under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Silverstripe/subsites versions are affected?
Affected versions include releases prior to 2.6.1 across affected packages: silverstripe/subsites.
What version fixes CVE-2022-42949?
Upgrading to 2.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/subsites affected?
Yes, silverstripe/subsites is affected in releases prior to 2.6.1. Upgrade your dependency to 2.6.1 or later.
What is the CVSS score of CVE-2022-42949?
CVE-2022-42949 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2022-42949?
CVE-2022-42949 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Packagist dependencies for CVE-2022-42949?
Run the dependency tree command: 'inspect dependencies for silverstripe/subsites'. 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-cx45-565q-6qx8",
  "modified" : "2025-04-17T16:48:19Z",
  "published" : "2022-12-19T18:19:11Z",
  "aliases" : [ "CVE-2022-42949" ],
  "summary" : "SilverStripe Subsite weakens file permissions",
  "details" : "The subsites module can weaken edit restrictions on some files and allow a malicious user to edit files they do not have edit rights to.\n\nThis only affects projects with the subsites module installed. Regression testing should focus on custom file logic.\n\nBe advised that this is not a case of a user being able to edit a file in subsites they do not have access to. As a reminder, all separation of content achieved with the subsites module should be viewed as cosmetic and not appropriate for security-critical applications.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/subsites"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-42949"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-subsites/commit/73f3d15bfb90ba779dd5498fcc5ae4ab292d6272"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/subsites/CVE-2022-42949.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/silverstripe/silverstripe-subsites"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases/cve-2022-42949"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-19T18:19:11Z",
    "nvd_published_at" : "2022-12-21T00:15:00Z"
  }
}