CVE-2021-31805
JSON

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 packageVersionsReported by
Apache Software Foundation Apache Struts2.0.0 to 2.5.29CVE List
org.apache.struts:struts2-core (Maven)from 2.0.0 before 2.5.30GitHub Advisory Database
apache strutsfrom 2.0.0 up to 2.5.29NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-31805 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-v8j6-6c2r-r27c changed 2024-02-20CC-BY-4.0
NVDCVE-2021-31805 changed 2026-06-17Public domain