CVE-2021-31805
Struts: Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.
Kaynağa göre önem derecesi
Trivy'nin kendi etiketi CRITICAL. Kritik diyenler: NVD, GHSA. Daha düşük diyenler: Red Hat (yüksek).
Açıklama
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.
Etkilenen paketler ve düzeltilmiş sürümler
| Kaynak | Paket | Düzeltildiği sürüm |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.apache.struts:struts2-core | 2.5.30 |
Referanslar
- http://www.openwall.com/lists/oss-security/2022/04/12/6
- https://access.redhat.com/security/cve/CVE-2021-31805
- https://cwiki.apache.org/confluence/display/WW/S2-062
- https://nvd.nist.gov/vuln/detail/CVE-2021-31805
- https://security.netapp.com/advisory/ntap-20220420-0001
- https://security.netapp.com/advisory/ntap-20220420-0001/
- https://www.cve.org/CVERecord?id=CVE-2021-31805
- https://www.oracle.com/security-alerts/cpujul2022.html