High

Code injection in Apache Struts

  • Disclosed: 13.05.2022
  • Updated: 11.10.2026 11:21

A vulnerability introduced by forcing parameter inclusion in the URL and Anchor Tag allows remote command execution, session access and manipulation and XSS attacks.

both the s:url and s:a tag provide an includeParams attribute.

The main scope of that attribute is to understand whether includes http request parameter or not.

The allowed values of includeParams are:

none - include no parameters in the URL (default)
get - include only GET parameters in the URL
all - include both GET and POST parameters in the URL

A request that included a specially crafted request parameter could be used to inject arbitrary OGNL code into the stack, afterward used as request parameter of an URL or A tag , which will cause a further evaluation.

The second evaluation happens when the URL/A tag tries to resolve every parameters present in the original request. This lets malicious users put arbitrary OGNL statements into any request parameter (not necessarily managed by the code) and have it evaluated as an OGNL expression to enable method execution and execute arbitrary methods, bypassing Struts and OGNL library protections.

The issue was originally addressed by Struts 2.3.14.1 and Security Announcement S2-013. However, the solution introduced with 2.3.14.1 did not address all possible attack vectors, such that every version of Struts 2 before 2.3.14.2 is still vulnerable to such attacks.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.struts:struts2-core >= 2.0.0, < 2.3.14.2 2.3.14.2
Java / Kotlin (Maven) org.apache.struts.xwork:xwork-core >= 2.0.0, < 2.3.14.2 2.3.14.2

References

CVSS score 8.1/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-94
Platform
Java / Kotlin (Maven)
Package
org.apache.struts:struts2-core, org.apache.struts.xwork:xwork-core
Disclosed
13.05.2022
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-7ghm-rpc7-p7g5 - CC BY 4.0

Vulnerability history: org.apache.struts.xwork:xwork-core

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (16) in the archive
Total entries
16
First → latest
05.2022 01.2026
Without a fix
1
Exploited in attacks
1

Severity breakdown

  • Critical 1
  • High 9
  • Medium 6

Disclosures per year

  1. 2022: 15
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 1
Severity:
  1. High · 8.1 CVE-2025-68493 >= 2.2.1 no fix
  2. High · 7.5 CVE-2016-4433 >= 2.3.20, < 2.3.29 2.3.29
  3. High CVE-2015-1831 >= 2.0.0, < 2.3.20.1 2.3.20.1
  4. High · 8.8 CVE-2016-4430 >= 2.3.20, < 2.3.29 2.3.29
  5. High CVE-2013-2134 >= 2.0.0, < 2.3.14.3 2.3.14.3
  6. High CVE-2013-2135 >= 2.0.0, < 2.3.14.3 2.3.14.3
  7. High CVE-2012-0838 < 2.2.3.1 2.2.3.1
  8. High CVE-2013-1966 >= 2.0.0, < 2.3.14.2 2.3.14.2
  9. Code injection in Apache Struts this entry
    High · 8.1 CVE-2013-2115 >= 2.0.0, < 2.3.14.2 2.3.14.2
  10. Critical · 9.8 Exploited in attacks CVE-2012-0391 < 2.2.3.1 2.2.3.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.