Apache Commons Text Remote Code Execution (Text4Shell)

critical Web App Scanning Plugin ID 113427

Synopsis

Apache Commons Text Remote Code Execution (Text4Shell)

Description

Apache Commons Text performs variable interpolation, allowing properties to be dynamically evaluated and expanded. The standard format for interpolation is "${prefix:name}", where "prefix" is used to locate an instance of org.apache.commons.text.lookup.StringLookup that performs the interpolation. Starting with version 1.5 and continuing through 1.9, the set of default Lookup instances included interpolators that could result in arbitrary code execution or contact with remote servers.

Solution

Upgrade to version 1.10.0 or later.

See Also

https://commons.apache.org/proper/commons-text/security.html

Plugin Details

Severity: Critical

ID: 113427

Type: remote

Published: 11/10/2022

Updated: 12/19/2022

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

Risk Information

VPR

Risk Factor: High

Score: 8.4

CVSS v2

Risk Factor: Critical

Base Score: 10

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

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

CVSS Score Source: CVE-2022-42889

Vulnerability Information

CPE: cpe:2.3:a:apache:commons_text:*:*:*:*:*:*:*:*

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 10/13/2022

Vulnerability Publication Date: 10/13/2022

Reference Information

CVE: CVE-2022-42889