Security mailing lists by PureSourceCode

CVE-2021-31805

CRITICAL 9.8CVSS 3.1

Expression Language Injection in Apache Struts

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.

Published
12 Apr 2022
Last modified
17 Jun 2026
Assigned by
security@apache.org
NVD status
Modified
Weakness
CWE-917
Also known as
GHSA-v8j6-6c2r-r27c
Sources
NVDJSONOSV GHSA-v8j6-6c2r-r27cJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apache struts
cpe:2.3:a:apache:struts:*:*:*:*:*:*:*:*
>= 2.0.0, <= 2.5.29
OSV Maven org.apache.struts:struts2-core >= 2.0.0, < 2.5.30 2.5.30

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 12 Apr 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 13 Apr 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.