CVE-2013-1965 — struts2-core
Fix: apache/struts@7e6f641CVE-2013-1965 is a Code Injection vulnerability in org.apache.struts:struts2-core. EPSS puts its 30-day exploitation probability at 93.5% (100th percentile). A fix is available for org.apache.struts:struts2-core — see the affected versions and patch details below.
Improper Control of Generation of Code in Apache Struts
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
org.apache.struts:struts2-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Apache Struts Showcase App 2.0.0 through 2.3.13, as used in Struts 2 before 2.3.14.3, allows remote attackers to execute arbitrary OGNL code via a crafted parameter name that is not properly handled when invoking a redirect.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.struts:struts2-core | all versions | 2.3.14.3org.apache.struts:struts2-core:2.3.14.3 |
Affected Products
strutsapachestruts2-showcaseapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.struts:struts2-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.struts:struts2-core to 2.3.14.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2013-1965 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
How to detect CVE-2013-1965
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2013-1965 -u https://target- Template
- Apache Struts2 S2-012 RCE
- Severity
- critical
- Impact
- Successful exploitation of this vulnerability can lead to remote code execution on the affected server.
- Remediation
- Developers should immediately upgrade to Struts 2.3.14.3 or later.
Template by ProjectDiscovery nuclei-templates (pikpikcu), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2013-1965 in your dependencies?
Find it across Maven, including transitive dependencies.