CVE-2021-31805
N/A
N/A
Summary
The fix issued for CVE-2020-17530 was incomplete. So from Apache Struts 2.0.0 to 2.5.29, still some of the tag’s attributes could perform a double evaluation if a developer applied forced OGNL evaluation by using the %{…} syntax. Using forced OGNL evaluation on untrusted user input can lead to a Remote Code Execution and security degradation.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Apache Software Foundation | Apache Struts | 2.0.0 to 2.5.29 | affected |
Weaknesses
- CWE-917: CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')
Workarounds
Avoid using forced OGNL evaluation on untrusted user input, and/or upgrade to Struts 2.5.30 which checks if expression evaluation won’t lead to the double evaluation.
Please read our Security Bulletin S2-062 for more details.
ADP Enrichment
CVE Program Container
Additional References
- https://cwiki.apache.org/confluence/display/WW/S2-062
- http://www.openwall.com/lists/oss-security/2022/04/12/6
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20220420-0001/
References
- https://cwiki.apache.org/confluence/display/WW/S2-062
- http://www.openwall.com/lists/oss-security/2022/04/12/6
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20220420-0001/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.