CVE-2013-1965: Code Injection

Published May 27, 2013
·
Updated

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.

Other sources

As per the upstream report:

OGNL provides, among other features, extensive expression evaluation capabilities. A request that included a specially crafted request parameter could be used to inject arbitrary OGNL code into a property, afterward used as request parameter of a redirect address, which will cause a further evaluation.

OGNL evaluation was already addressed in S2-003 and S2-005 and S2-009, but, since it involved just the parameter's name, it turned out that the resulting fixes based on whitelisting acceptable parameter names and denying evaluation of the expression contained in parameter names, closed the vulnerability only partially.

The second evaluation happens when redirect result reads it from the stack and uses the previously injected code as redirect parameter. This lets malicious users put arbitrary OGNL statements into any unsanitized String variable exposed by an action and have it evaluated as an OGNL expression to enable method execution and execute arbitrary methods, bypassing Struts and OGNL library protections.

This flaw is reported to affect Struts 2.0.0 through to Struts 2.3.14. It is corrected in 2.3.14.1.

External References:

https://cwiki.apache.org/confluence/display/WW/S2-012

Red Hat

Affected Software

4 affected componentsFixes available
maven/org.apache.struts:struts2-core<2.3.14.3
2.3.14.3
redhat/Struts<2.3.14.3
2.3.14.3
Apache struts>=2.0.0<2.3.14.1
Apache Struts2-showcase>=2.0.0<=2.3.13

Event History

Jul 10, 2013
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
May 14, 2022
Advisory Published
via GitHub·12:54 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2013-1965?

CVE-2013-1965 is considered critical due to its potential to allow remote code execution via arbitrary OGNL code.

2

How do I fix CVE-2013-1965?

To fix CVE-2013-1965, upgrade to Apache Struts version 2.3.14.3 or later.

3

What software is affected by CVE-2013-1965?

CVE-2013-1965 affects Apache Struts versions 2.0.0 through 2.3.13.

4

Can CVE-2013-1965 be exploited remotely?

Yes, CVE-2013-1965 can be exploited by remote attackers due to improper handling of crafted parameter names.

5

What component of Apache Struts is implicated in CVE-2013-1965?

CVE-2013-1965 is related to the Struts 2 framework's handling of OGNL expressions during redirects.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203