Apache Commons Text 1.5.x < 1.10.0 Remote Code Execution (CVE-2022-42889)

critical Nessus Plugin ID 166250

Synopsis

A package installed on the remote host is affected by a remote code execution vulnerability.

Description

The version of Apache Commons Text on the remote host is 1.5.x < 1.10.0. It is, therefore, affected by a remote code execution vulnerability due to unsafe script evaluation in the StringSubstitutor default interpolator.

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 Commons Text 1.10.0 or later.

See Also

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

https://www.openwall.com/lists/oss-security/2022/10/13/4

Plugin Details

Severity: Critical

ID: 166250

File Name: apache_commons_text_1_10_0.nasl

Version: 1.4

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 10/19/2022

Updated: 1/22/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: High

Score: 8.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 8.3

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

CVSS Score Source: CVE-2022-42889

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:commons_text

Required KB Items: installed_sw/Apache Commons Text

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 10/12/2022

Vulnerability Publication Date: 10/12/2022

Exploitable With

Metasploit (Apache Commons Text RCE)

Reference Information

CVE: CVE-2022-42889