Apache Struts CVE-2018-11776 Results With No Namespace Remote Code Execution (S2-057) (remote)

high Nessus Plugin ID 112064
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The remote web server contains a web application that uses a Java framework that is affected by a remote code execution vulnerability.

Description

The version of Apache Struts running on the remote host is affected by a remote code execution vulnerability in the handling of results with no namespace set. An unauthenticated, remote attacker can exploit this, via a specially crafted HTTP request, to potentially execute arbitrary code, subject to the privileges of the web server user.

Solution

Upgrade to Apache Struts version 2.3.35 / 2.5.17 or later.

See Also

http://www.nessus.org/u?a21304a0

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

https://seclists.org/bugtraq/2018/Aug/46

https://semmle.com/news/apache-struts-CVE-2018-11776

https://lgtm.com/blog/apache_struts_CVE-2018-11776

Plugin Details

Severity: High

ID: 112064

File Name: struts_2_5_17_rce.nasl

Version: 1.18

Type: remote

Family: CGI abuses

Published: 8/23/2018

Updated: 11/30/2021

Dependencies: http_version.nasl, webmirror.nasl, os_fingerprint.nasl

Risk Information

CVSS Score Source: CVE-2018-11776

VPR

Risk Factor: Critical

Score: 9.5

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.7

Vector: AV:N/AC:M/Au:N/C:C/I:C/A:C

Temporal Vector: E:F/RL:OF/RC:C

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.5

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

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

Vulnerability Information

CPE: cpe:/a:apache:struts

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Exploited by Nessus: true

Patch Publication Date: 8/22/2018

Vulnerability Publication Date: 8/22/2018

Exploitable With

Metasploit (Apache Struts 2 Namespace Redirect OGNL Injection)

Elliot (Apache Struts 2 Multiple Tags Result Namespace Handling RCE)

Reference Information

CVE: CVE-2018-11776

BID: 105125