CWE
917
Advisory Published
Updated

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

First published: Tue 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.

Credit: security@apache.org

Affected SoftwareAffected VersionHow to fix
Apache Struts>=2.0.0<=2.5.29

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • How severe is CVE-2021-31805?

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

  • 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.

  • 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.

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203