Vulnerabilities in pkg:maven/org.apache.struts/struts-core

PACKAGE
Advisory Identifier: GHSA-9848-v244-962p
Advisory Summary

CVE-2012-1007 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Withdrawn Advisory libraries in the Maven ecosystem. The issue involves apache struts xss. Remediation is available in the latest vendor maintenance releases.

6 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.struts/struts-core

6 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.struts/struts-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-9848-v244-962p CVE-2012-1007 MODERATE Withdrawn Advisory: Apache Struts XSS
GHSA-4g42-gqrg-4633 CVE-2023-34396 HIGH Apache Struts vulnerable to memory exhaustion
GHSA-5ggr-mpgw-3mgx CVE-2016-1182 HIGH Improper Input Validation in Apache Struts
GHSA-7jw3-5q4w-89qg CVE-2016-1181 HIGH Improper Input Validation in Apache Struts
GHSA-cvvx-r33m-v7pq CVE-2015-0899 HIGH Improper Input Validation in Apache Struts
GHSA-9cjh-qmvx-436c CVE-2005-3745 MODERATE Apache Struts Cross-site scripting Vulnerability

CVE-2012-1007 at a Glance

CVE Identifier CVE-2012-1007
GHSA Identifier GHSA-9848-v244-962p
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 Withdrawn Advisory
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2012-1007

To remediate this vulnerability, upgrade all affected Withdrawn Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.struts:struts-core fixed: Latest secure release
<dependency>
    <groupId>org.apache.struts</groupId>
    <artifactId>struts-core</artifactId>
    <version>Latest secure release</version>
</dependency>
struts:struts fixed: Latest secure release
<dependency>
    <groupId>struts</groupId>
    <artifactId>struts</artifactId>
    <version>Latest secure release</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=org.apache.struts

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.struts

Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.struts 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-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 Withdrawn Advisory, 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

### Withdrawn Advisory This advisory has been withdrawn because it was deemed invalid. This link is maintained to preserve external references. ### Original Description Multiple cross-site scripting (XSS) vulnerabilities in Apache Struts 1.3.10 allow remote attackers to inject arbitrary web script or HTML via (1) the name parameter to struts-examples/upload/upload-submit.do, or the message parameter to (2) `struts-cookbook/processSimple.do` or (3) `struts-cookbook/processDyna.do`.

CVE-2012-1007 Affected Withdrawn Advisory Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.struts:struts-core
Maven
≤ 1.3.10
struts:struts
Maven
≤ 1.3.10

References

Frequently Asked Questions

What is CVE-2012-1007?
CVE-2012-1007 is a security vulnerability in Withdrawn Advisory involving Apache Struts XSS under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.apache.struts:struts-core, struts:struts.
What version fixes CVE-2012-1007?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is struts-core affected?
Yes, org.apache.struts:struts-core is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is struts affected?
Yes, struts:struts is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2012-1007?
CVE-2012-1007 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 Maven dependencies for CVE-2012-1007?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.struts'. 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-9848-v244-962p",
  "modified" : "2026-05-14T13:03:54Z",
  "published" : "2022-05-14T02:21:24Z",
  "withdrawn" : "2026-05-14T13:03:54Z",
  "aliases" : [ "CVE-2012-1007" ],
  "summary" : "Withdrawn Advisory: Apache Struts XSS",
  "details" : "### Withdrawn Advisory\nThis advisory has been withdrawn because it was deemed invalid. This link is maintained to preserve external references.\n\n### Original Description\nMultiple cross-site scripting (XSS) vulnerabilities in Apache Struts 1.3.10 allow remote attackers to inject arbitrary web script or HTML via (1) the name parameter to struts-examples/upload/upload-submit.do, or the message parameter to (2) `struts-cookbook/processSimple.do` or (3) `struts-cookbook/processDyna.do`.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.struts:struts-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.3.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "struts:struts"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.3.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-1007"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/73052"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-03T21:09:51Z",
    "nvd_published_at" : "2012-02-07T04:09:00Z"
  }
}