Paper/Archive/CVE-2021-31805

CVE-2021-31805

Apache Software Foundation Apache Struts — Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.

Description · from the CVE record

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

ProductAffectedFixed inSource
Apache Struts2.0.0 to 2.5.29–CNA

Scores by source

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

References

refcwiki.apache.org/confluence/display/WW/S2-062refopenwall.com/lists/oss-security/2022/04/12/6reforacle.com/security-alerts/cpujul2022.htmlrefsecurity.netapp.com/advisory/ntap-20220420-0001