Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.struts/struts2-config-browser-plugin
  4. ›
  5. CVE-2021-31805

CVE-2021-31805: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

April 12, 2022 (updated July 25, 2022)

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.

References

  • www.openwall.com/lists/oss-security/2022/04/12/6
  • cwiki.apache.org/confluence/display/WW/S2-062
  • nvd.nist.gov/vuln/detail/CVE-2021-31805
  • security.netapp.com/advisory/ntap-20220420-0001/

Code Behaviors & Features

Detect and mitigate CVE-2021-31805 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 up to 2.5.29

Fixed versions

  • 2.5.30

Solution

Upgrade to version 2.5.30 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

Source file

maven/org.apache.struts/struts2-config-browser-plugin/CVE-2021-31805.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:39 +0000.