CVE-2008-6504: Xwork Improper Input Validation Vulnerability
MODERATECVE-2008-6504 is a MODERATE improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Xwork libraries in the Maven ecosystem. The issue involves improper input validation in opensymphony xwork. Remediation is available by upgrading affected packages to version 2.0.6, 2.1.2.
CVE-2008-6504 at a Glance
How to Fix CVE-2008-6504
To remediate this vulnerability, upgrade all affected Xwork dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.opensymphony</groupId>
<artifactId>xwork</artifactId>
<version>2.0.6</version>
</dependency>
<dependency>
<groupId>com.opensymphony</groupId>
<artifactId>xwork</artifactId>
<version>2.1.2</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.opensymphony
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2008-6504, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.opensymphony
Analyze the terminal output to locate any version of Xwork in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.6), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.opensymphony command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Xwork, 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-2008-6504 Affected Xwork Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.opensymphony:xwork
|
Maven |
< 2.0.6
|
2.0.6
|
|
com.opensymphony:xwork
|
Maven |
≥ 2.1.0
< 2.1.2
|
2.1.2
|
References
Frequently Asked Questions
What is CVE-2008-6504?
Which Xwork versions are affected?
What version fixes CVE-2008-6504?
Is xwork affected?
What CWE is associated with CVE-2008-6504?
How can I check Maven dependencies for CVE-2008-6504?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wxw2-2mx5-c5qf",
"modified" : "2022-11-01T22:34:44Z",
"published" : "2022-05-17T02:11:15Z",
"aliases" : [ "CVE-2008-6504" ],
"summary" : "Improper Input Validation in OpenSymphony XWork",
"details" : "ParametersInterceptor in OpenSymphony XWork 2.0.x before 2.0.6 and 2.1.x before 2.1.2, as used in Apache Struts and other products, does not properly restrict # (pound sign) references to context objects, which allows remote attackers to execute Object-Graph Navigation Language (OGNL) statements and modify server-side context objects, as demonstrated by use of a \\u0023 representation for the # character.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.opensymphony:xwork"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.opensymphony:xwork"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-6504"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/46328"
}, {
"type" : "WEB",
"url" : "http://fisheye6.atlassian.com/cru/CR-9"
}, {
"type" : "WEB",
"url" : "http://issues.apache.org/struts/browse/WW-2692"
}, {
"type" : "WEB",
"url" : "http://jira.opensymphony.com/browse/XW-641"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/32495"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/32497"
}, {
"type" : "WEB",
"url" : "http://struts.apache.org/2.x/docs/s2-003.html"
}, {
"type" : "WEB",
"url" : "http://web.archive.org/web/20081119232431/jira.opensymphony.com/browse/XW-641"
}, {
"type" : "WEB",
"url" : "http://web.archive.org/web/20130807023152/https://fisheye6.atlassian.com/cru/CR-9"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/32101"
}, {
"type" : "WEB",
"url" : "http://www.vupen.com/english/advisories/2008/3003"
}, {
"type" : "WEB",
"url" : "http://www.vupen.com/english/advisories/2008/3004"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-01T22:34:44Z",
"nvd_published_at" : "2009-03-23T14:19:00Z"
}
}