Struts ParameterInterceptor vulnerability allows remote command execution
Published 22 Apr 2022 · Updated 16 Feb 2024
Is your project on an affected org.apache.struts:struts2-core?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=2.0.0 <2.3.1.2
- Fixed in
- 2.3.1.2
mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-core -DdepVersion=2.3.1.2 -DforceVersion=trueDetails
Regular expression in ParametersInterceptor matches top['foo'](0) as a valid expression, which OGNL treats as (top['foo'])(0) and evaluates the value of 'foo' action parameter as an OGNL expression. This lets malicious users put arbitrary OGNL statements into any String variable exposed by an action and have it evaluated as an OGNL expression and since OGNL statement is in HTTP parameter value attacker can use blacklisted characters (e.g. #) to disable method execution and execute arbitrary methods, bypassing the ParametersInterceptor and OGNL library protections.
Is GHSA-j68f-8h6p-9h5q in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.struts:struts2-core, and gives you the command that fixes it.
More advisories for org.apache.struts:struts2-core
- HighCVE-2025-68493Apache Struts 2 is Missing XML Validation · 11 Jan 2026
- HighCVE-2025-66675Apache Struts has a Denial of Service vulnerability · 10 Dec 2025
- HighCVE-2025-64775Apache Struts is Vulnerable to DoS via File Leak · 1 Dec 2025
- CriticalCVE-2024-53677Apache Struts file upload logic is flawed · 11 Dec 2024
- CriticalCVE-2023-50164Apache Struts vulnerable to path traversal · 7 Dec 2023
- HighCVE-2023-41835Apache Struts Improper Control of Dynamically-Managed Code Resources vulnerability · 5 Dec 2023
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2011-3923
- Linkbugzilla.redhat.com/show_bug.cgi?id=CVE-2011-3923
- Linkexchange.xforce.ibmcloud.com/vulnerabilities/72585
- Linksecurity-tracker.debian.org/tracker/CVE-2011-3923
- Linkweb.archive.org/web/20140725074137/http://seclists.org/fulldisclosure/2014/Jul/38
- Linkblog.o0o.nu/2012/01/cve-2011-3923-yet-another-struts2.html
- Linkstruts.apache.org/development/2.x/docs/s2-009.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.