CVE-2012-4968: Silverstripe/framework Cross-Site Scripting Vulnerability
MODERATECVE-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
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.
Upgrade silverstripe/framework to 2.3.13
Upgrade silverstripe/framework to 2.4.7
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
CVE-2012-4968 Affected Silverstripe/framework Versions
2 component(s)| 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?
Which Silverstripe/framework versions are affected?
What version fixes CVE-2012-4968?
Is silverstripe/framework affected?
What CWE is associated with CVE-2012-4968?
How can I check Packagist dependencies for CVE-2012-4968?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}