Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.struts/struts2-core
  4. ›
  5. CVE-2013-2251

CVE-2013-2251: Code injection in Apache Struts

May 13, 2022 (updated October 22, 2025)

The Struts 2 DefaultActionMapper supports a method for short-circuit navigation state changes by prefixing parameters with “action:” or “redirect:”, followed by a desired navigational target expression. This mechanism was intended to help with attaching navigational information to buttons within forms.

In Struts 2 before 2.3.15.1 the information following “action:”, “redirect:” or “redirectAction:” is not properly sanitized. Since said information will be evaluated as OGNL expression against the value stack, this introduces the possibility to inject server side code.

References

  • exchange.xforce.ibmcloud.com/vulnerabilities/90392
  • github.com/advisories/GHSA-47qp-8v9g-39hp
  • github.com/apache/struts
  • github.com/apache/struts/commit/3cfe34fefedcf0fdcfcb061c0aea34a715b7de6
  • github.com/apache/struts/commit/630e1ba065a8215c4e9ac03bfb09be9d655c2b6e
  • issues.apache.org/jira/browse/WW-4140
  • nvd.nist.gov/vuln/detail/CVE-2013-2251
  • www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2013-2251

Code Behaviors & Features

Detect and mitigate CVE-2013-2251 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.15.1

Fixed versions

  • 2.3.15.1

Solution

Upgrade to version 2.3.15.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

maven/org.apache.struts/struts2-core/CVE-2013-2251.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 04 Nov 2025 12:19:07 +0000.