Apache Struts 2.x < 2.5.26 RCE (S2-061)

critical Nessus Plugin ID 143599

Synopsis

Apache Struts installed on the remote host is affected by a remote code execution vulnerability.

Description

The version of Apache Struts installed on the remote host is 2.x prior to 2.5.26. It is, therefore, affected by a a remote code execution vulnerability in its OGNL evaluation functionality due to insufficient validation of user input. An unauthenticated, remote attacker can exploit this to execute arbitrary commands on an affected host.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Apache Struts version 2.5.26 or later. Alternatively, apply the workarounds as referenced in the vendor security bulletins.

See Also

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

Plugin Details

Severity: Critical

ID: 143599

File Name: struts_2_5_26.nasl

Version: 1.11

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 12/9/2020

Updated: 6/16/2023

Configuration: Enable thorough checks

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: High

Score: 8.4

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

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

CVSS Score Source: CVE-2020-17530

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.1

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

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:apache:struts

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 11/21/2020

Vulnerability Publication Date: 12/8/2020

CISA Known Exploited Vulnerability Due Dates: 5/3/2022

Exploitable With

Metasploit (Apache Struts 2 Forced Multi OGNL Evaluation)

Reference Information

CVE: CVE-2020-17530

IAVA: 2020-A-0565-S