Apache Tomcat 7.0.0 < 7.0.108 RCE

medium Nessus Plugin ID 147163
New! Vulnerability Priority Rating (VPR)

Tenable calculates a dynamic VPR for every vulnerability. VPR combines vulnerability information with threat intelligence and machine learning algorithms to predict which vulnerabilities are most likely to be exploited in attacks. Read more about what VPR is and how it is different from CVSS.

VPR Score: 5.9

Synopsis

The remote Apache Tomcat server is affected by a remote code execution vulnerability

Description

The fix for CVE-2020-9484 was incomplete. The version of Tomcat installed on the remote host is prior to 7.0.108. It is, therefore, affected by a remote code execution vulnerability via deserialization. An attacker is able to control the contents and name of a file on the server; and b) the server is configured to use the PersistenceManager with a FileStore; and c) the PersistenceManager is configured with sessionAttributeValueClassNameFilter=null (the default unless a SecurityManager is used) or a sufficiently lax filter to allow the attacker provided object to be deserialized; and d) the attacker knows the relative file path from the storage location used by FileStore to the file the attacker has control over; then, using a specifically crafted request, the attacker will be able to trigger remote code execution via deserialization of the file under their control. Note that both the previously published prerequisites for CVE-2020-9484 and the previously published mitigations for CVE-2020-9484 also apply to this issue.

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

Solution

Upgrade to Apache Tomcat version 7.0.108 or later.

See Also

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

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

Plugin Details

Severity: Medium

ID: 147163

File Name: tomcat_7_0_108.nasl

Version: 1.3

Type: combined

Agent: windows, macosx, unix

Family: Web Servers

Published: 3/5/2021

Updated: 3/10/2021

Dependencies: tomcat_error_version.nasl, tomcat_win_installed.nbin, apache_tomcat_nix_installed.nbin

Risk Information

Risk Factor: Medium

VPR Score: 5.9

CVSS Score Source: CVE-2021-25329

CVSS v2.0

Base Score: 4.4

Temporal Score: 3.3

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

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

CVSS v3.0

Base Score: 7

Temporal Score: 6.1

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

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

Vulnerability Information

CPE: cpe:/a:apache:tomcat

Required KB Items: installed_sw/Apache Tomcat

Exploit Ease: No known exploits are available

Patch Publication Date: 1/28/2021

Vulnerability Publication Date: 2/2/2021

Reference Information

CVE: CVE-2021-25329

IAVA: 2021-A-0114