CVE-2007-4556: Xwork OpenSymphony XWork Vulnerable To Improper Vulnerability

MODERATE
Advisory Identifier: GHSA-h7mf-qrm9-2848
CWE-20
Published
Advisory Summary

CVE-2007-4556 is a MODERATE opensymphony xwork vulnerable to improper vulnerability (CWE-20: Improper Input Validation) affecting Xwork libraries in the Maven ecosystem. The issue involves opensymphony xwork vulnerable to improper input validation. Remediation is available by upgrading affected packages to version 1.2.3, 2.0.4.

CVE-2007-4556 at a Glance

CVE Identifier CVE-2007-4556
GHSA Identifier GHSA-h7mf-qrm9-2848
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Xwork
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2007-4556

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.

opensymphony:xwork fixed: 1.2.3
<dependency>
    <groupId>opensymphony</groupId>
    <artifactId>xwork</artifactId>
    <version>1.2.3</version>
</dependency>
opensymphony:xwork fixed: 2.0.4
<dependency>
    <groupId>opensymphony</groupId>
    <artifactId>xwork</artifactId>
    <version>2.0.4</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=opensymphony

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2007-4556, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=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 1.2.3), your application is affected.

Note: The mvn dependency:tree -Dincludes=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

XWork is an command-pattern framework that is used to power WebWork as well as other applications. Struts support in OpenSymphony XWork before 1.2.3, and 2.x before 2.0.4, as used in WebWork and Apache Struts, recursively evaluates all input as an Object-Graph Navigation Language (OGNL) expression when altSyntax is enabled, which allows remote attackers to cause a denial of service (infinite loop) or execute arbitrary code via form input beginning with a "%{" sequence and ending with a "}" character. Note: Version 2.0.4 marks the change from `opensymphony:xwork` to `com.opensymphony:xwork`.

CVE-2007-4556 Affected Xwork Versions

2 component(s)
Fixed Versions:
1.2.32.0.4
Product / Package Ecosystem Affected Versions Fixed Version
opensymphony:xwork
Maven
< 1.2.3
1.2.3
opensymphony:xwork
Maven
≥ 2.0.0
< 2.0.4
2.0.4

References

Frequently Asked Questions

What is CVE-2007-4556?
CVE-2007-4556 is a security vulnerability in Xwork involving OpenSymphony XWork vulnerable to improper input validation under CWE-20: Improper Input Validation.
Which Xwork versions are affected?
Affected versions include releases prior to 1.2.3, 2.0.4 across affected packages: opensymphony:xwork.
What version fixes CVE-2007-4556?
Upgrading to 1.2.3, 2.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwork affected?
Yes, opensymphony:xwork is affected in releases prior to 1.2.3, 2.0.4. Upgrade your dependency to 1.2.3, 2.0.4 or later.
What CWE is associated with CVE-2007-4556?
CVE-2007-4556 is classified under CWE-20: Improper Input Validation (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.).
How can I check Maven dependencies for CVE-2007-4556?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=opensymphony'. 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-h7mf-qrm9-2848",
  "modified" : "2023-09-11T20:52:36Z",
  "published" : "2022-05-01T18:24:47Z",
  "aliases" : [ "CVE-2007-4556" ],
  "summary" : "OpenSymphony XWork vulnerable to improper input validation",
  "details" : "XWork is an command-pattern framework that is used to power WebWork as well as other applications. Struts support in OpenSymphony XWork before 1.2.3, and 2.x before 2.0.4, as used in WebWork and Apache Struts, recursively evaluates all input as an Object-Graph Navigation Language (OGNL) expression when altSyntax is enabled, which allows remote attackers to cause a denial of service (infinite loop) or execute arbitrary code via form input beginning with a \"%{\" sequence and ending with a \"}\" character. \n\nNote: Version 2.0.4 marks the change from `opensymphony:xwork` to `com.opensymphony:xwork`.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "opensymphony:xwork"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "opensymphony:xwork"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.3"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-4556"
  }, {
    "type" : "WEB",
    "url" : "http://struts.apache.org/2.x/docs/s2-001.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-07T23:11:42Z",
    "nvd_published_at" : "2007-08-28T01:17:00Z"
  }
}