Apache Struts 2.x < 2.5.29 Remote Code Execution (S2-062)

critical Web App Scanning Plugin ID 113226

Synopsis

Apache Struts 2.x < 2.5.29 Remote Code Execution (S2-062)

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.

Solution

Refer to the S2-062 vendor advisory for mitigation options.

See Also

https://cwiki.apache.org/confluence/display/WW/S2-062

Plugin Details

Severity: Critical

ID: 113226

Type: remote

Published: 5/18/2022

Updated: 5/18/2022

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-31805

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS Score Source: CVE-2021-31805

Vulnerability Information

CPE: cpe:2.3:a:apache:struts:*:*:*:*:*:*:*:*

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 4/12/2022

Reference Information

CVE: CVE-2021-31805