CVE-2021-31805: Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.

Published Apr 12, 2022
·
Updated

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

1 affected component
Apache struts>=2.0.0<=2.5.29

Event History

Apr 12, 2022
CVE Published
via MITRE·03:25 PM
Data Sourced
via MITRE·03:25 PM
DescriptionWeakness
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 CVE-2021-31805?

CVE-2021-31805 is a vulnerability in Apache Struts 2.0.0 to 2.5.29 that allows for double evaluation of tag attributes when forced OGNL evaluation is used.

2

How severe is CVE-2021-31805?

CVE-2021-31805 is classified as a critical vulnerability with a severity score of 9.8.

3

How does CVE-2021-31805 affect Apache Struts?

CVE-2021-31805 affects Apache Struts versions 2.0.0 to 2.5.29, allowing for potential double evaluation of tag attributes.

4

What is forced OGNL evaluation?

Forced Object-Graph Navigation Language (OGNL) evaluation is a feature that allows developers to evaluate expressions within tags or templates.

5

How can I fix CVE-2021-31805?

To fix CVE-2021-31805, users are advised to upgrade Apache Struts to a version beyond 2.5.29.

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
CVE-2021-31805 - Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE. - SecAlerts