Vulnerabilities · 2021 · Apache
CVE-2021-31805
Apache Struts vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Struts. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Apache Struts runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- cwiki.apache.org/confluence/display/WW/S2-062 · Mitigation
- www.openwall.com/lists/oss-security/2022/04/12/6 · Mitigation
- security.netapp.com/advisory/ntap-20220420-0001/ · Third Party Advisory
- www.oracle.com/security-alerts/cpujul2022.html
- nvd.nist.gov/vuln/detail/CVE-2021-31805
- cve.org/CVERecord?id=CVE-2021-31805
More vulnerabilities in Apache products
CVE-2026-47340CVE-2026-44930CVE-2026-44618CVE-2026-44417CVE-2026-42357CVE-2026-41280CVE-2026-32967CVE-2026-32966All 2,699
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.