CVE-2012-4968: Silverstripe/framework Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-v358-rvxr-wffx
CWE-79
Published
Advisory Summary

CVE-2012-4968 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Silverstripe/framework libraries in the Packagist ecosystem. The issue involves silverstripe xss vulnerabilities. Remediation is available by upgrading affected packages to version 2.3.13, 2.4.7.

CVE-2012-4968 at a Glance

CVE Identifier CVE-2012-4968
GHSA Identifier GHSA-v358-rvxr-wffx
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Silverstripe/framework
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2012-4968

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

How to Check if You Are Affected

To determine whether your application is affected by CVE-2012-4968, inspect your project dependencies for Silverstripe/framework:

inspect dependencies for silverstripe/framework

Analyze the terminal output to locate any version of Silverstripe/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.13), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Silverstripe/framework, 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

Multiple cross-site scripting (XSS) vulnerabilities in SilverStripe 2.3.x before 2.3.13 and 2.4.x before 2.4.7 allow remote attackers to inject arbitrary web script or HTML via 1. a crafted string to the `AbsoluteLinks` 1. `BigSummary` 1. `ContextSummary` 1. `EscapeXML` 1. `FirstParagraph` 1. `FirstSentence` 1. `Initial` 1. `LimitCharacters` 1. `LimitSentences` 1. `LimitWordCount` 1. `LimitWordCountXML` 1. `Lower` 1. `LowerCase` 1. `NoHTML` 1. `Summary` 1. `Upper` 1. `UpperCase`, or 1. `URL` method in a template, different vectors than CVE-2012-0976.

CVE-2012-4968 Affected Silverstripe/framework Versions

2 component(s)
Fixed Versions:
2.3.132.4.7
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/framework
Packagist
≥ 2.3
< 2.3.13
2.3.13
silverstripe/framework
Packagist
≥ 2.4
< 2.4.7
2.4.7

References

Frequently Asked Questions

What is CVE-2012-4968?
CVE-2012-4968 is a security vulnerability in Silverstripe/framework involving Silverstripe XSS Vulnerabilities under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Silverstripe/framework versions are affected?
Affected versions include releases prior to 2.3.13, 2.4.7 across affected packages: silverstripe/framework.
What version fixes CVE-2012-4968?
Upgrading to 2.3.13, 2.4.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/framework affected?
Yes, silverstripe/framework is affected in releases prior to 2.3.13, 2.4.7. Upgrade your dependency to 2.3.13, 2.4.7 or later.
What CWE is associated with CVE-2012-4968?
CVE-2012-4968 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2012-4968?
Run the dependency tree command: 'inspect dependencies for silverstripe/framework'. 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-v358-rvxr-wffx",
  "modified" : "2024-01-12T20:16:37Z",
  "published" : "2022-05-17T05:22:19Z",
  "aliases" : [ "CVE-2012-4968" ],
  "summary" : "Silverstripe XSS Vulnerabilities",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in SilverStripe 2.3.x before 2.3.13 and 2.4.x before 2.4.7 allow remote attackers to inject arbitrary web script or HTML via \n1. a crafted string to the `AbsoluteLinks`\n1. `BigSummary`\n1. `ContextSummary`\n1. `EscapeXML`\n1. `FirstParagraph`\n1. `FirstSentence`\n1. `Initial`\n1. `LimitCharacters`\n1. `LimitSentences`\n1. `LimitWordCount`\n1. `LimitWordCountXML`\n1. `Lower`\n1. `LowerCase`\n1. `NoHTML`\n1. `Summary`\n1. `Upper`\n1. `UpperCase`, or \n1. `URL` method in a template, \n\ndifferent vectors than CVE-2012-0976.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3"
      }, {
        "fixed" : "2.3.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4"
      }, {
        "fixed" : "2.4.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-4968"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/sapphire/commit/0085876"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-framework/commit/0085876495f0f8dda5dc58cb24a8f2220e7baf1e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-framework/commit/15e9e059e5948ccf8f5a36dfcb435ad26ecec334"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/silverstripe/silverstripe-framework"
  }, {
    "type" : "WEB",
    "url" : "http://doc.silverstripe.org/framework/en/trunk/changelogs/2.3.13"
  }, {
    "type" : "WEB",
    "url" : "http://doc.silverstripe.org/framework/en/trunk/changelogs/2.4.7"
  }, {
    "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-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T20:16:37Z",
    "nvd_published_at" : "2012-09-17T17:55:00Z"
  }
}