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.
https://github.com/Sharon-Needles/cve
https://github.com/nth347/CVE-2021-31805
https://github.com/StarCrossPortal/VulnsDB
https://github.com/fleabane1/CVE-2021-31805-POC
https://github.com/jax7sec/S2-062
https://github.com/Axx8/Struts2_S2-062_CVE-2021-31805
https://github.com/YanMu2020/s2-062
https://github.com/advisories/GHSA-v8j6-6c2r-r27c