CVE-2011-4962: Silverstripe/cms Silverstripe CMS Arbitrary Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-gv6c-59h4-9pmg
CWE-502 CWE-20
Published
Advisory Summary

CVE-2011-4962 is a MODERATE silverstripe cms arbitrary code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Silverstripe/cms libraries in the Packagist ecosystem. The issue involves silverstripe cms arbitrary code execution. Remediation is available by upgrading affected packages to version 2.4.6.

CVE-2011-4962 at a Glance

CVE Identifier CVE-2011-4962
GHSA Identifier GHSA-gv6c-59h4-9pmg
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Silverstripe/cms
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2011-4962

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: 2.4.6
Upgrade silverstripe/cms to 2.4.6
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 CVE-2011-4962, 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 2.4.6), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. 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

`code/sitefeatures/PageCommentInterface.php` in SilverStripe 2.4.x before 2.4.6 might allow remote attackers to execute arbitrary code via a crafted cookie in a user comment submission, which is not properly handled when it is deserialized.

CVE-2011-4962 Affected Silverstripe/cms Versions

1 component(s)
Fixed Versions:
2.4.6
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/cms
Packagist
≥ 2.4.0
< 2.4.6
2.4.6

References

Frequently Asked Questions

What is CVE-2011-4962?
CVE-2011-4962 is a security vulnerability in Silverstripe/cms involving Silverstripe CMS Arbitrary Code Execution under CWE-502: Deserialization of Untrusted Data.
Which Silverstripe/cms versions are affected?
Affected versions include releases prior to 2.4.6 across affected packages: silverstripe/cms.
What version fixes CVE-2011-4962?
Upgrading to 2.4.6 (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 2.4.6. Upgrade your dependency to 2.4.6 or later.
What CWE is associated with CVE-2011-4962?
CVE-2011-4962 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Packagist dependencies for CVE-2011-4962?
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-gv6c-59h4-9pmg",
  "modified" : "2024-01-19T17:34:34Z",
  "published" : "2022-05-17T05:22:06Z",
  "aliases" : [ "CVE-2011-4962" ],
  "summary" : "Silverstripe CMS Arbitrary Code Execution",
  "details" : "`code/sitefeatures/PageCommentInterface.php` in SilverStripe 2.4.x before 2.4.6 might allow remote attackers to execute arbitrary code via a crafted cookie in a user comment submission, which is not properly handled when it is deserialized.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.4.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-4962"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-cms/commit/d15e8509b01ff2dbbe3028a055021a29b1065b22"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/silverstripe/silverstripe-cms"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20120621234353/http://doc.silverstripe.org/framework/en/trunk/changelogs/2.4.6"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/04/30/1"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/04/30/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-19T17:34:34Z",
    "nvd_published_at" : "2012-09-17T17:55:00Z"
  }
}