9.8critical
Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 85.4% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-v8j6-6c2r-r27c
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Struts | 2.0.0 to 2.5.29 | CVE List |
| org.apache.struts:struts2-core (Maven) | from 2.0.0 before 2.5.30 | GitHub Advisory Database |
| apache struts | from 2.0.0 up to 2.5.29 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
La corrección emitida para CVE-2020-17530 era incompleta. Así, desde Apache Struts versiones 2.0.0 hasta 2.5.29, todavía algunos de los atributos de las etiquetas podían llevar a cabo una doble evaluación si un desarrollador aplicaba la evaluación OGNL forzada usando la sintaxis %{...}. El uso de la evaluación forzada de OGNL en entradas de usuario no confiables puede conllevar a una Ejecución de Código Remota y una degradación de la seguridad
References
| https://cwiki.apache.org/confluence/display/WW/S2-062 | mitigation, patch, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2022/04/12/6 | mailing-list, mitigation, third-party-advisory, web | |
| https://www.oracle.com/security-alerts/cpujul2022.html | web | |
| https://security.netapp.com/advisory/ntap-20220420-0001/ | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-31805 | advisory | |
| https://security.netapp.com/advisory/ntap-20220420-0001 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31805 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v8j6-6c2r-r27c changed 2024-02-20 | CC-BY-4.0 |
| NVD | CVE-2021-31805 changed 2026-06-17 | Public domain |