home / blog

2026-11-19 · critical

CVE-2022-42889: Critical vulnerability in Apache Commons Text

Critical CVE-2022-42889 in Apache Commons Text versions 1.5-1.9 allows remote code execution.

CVE-2022-42889: Critical vulnerability in Apache Commons Text

The CVE-2022-42889 vulnerability, known as Text4Shell, is present in Apache Commons Text versions 1.5 through 1.9. The vulnerability concerns the variable interpolation mechanism that, using 'script' and 'url' prefixes, allows remote code execution or contact with remote servers when untrusted configurations are used.

With a CVSS score of 9.8, this vulnerability is classified as critical and its status is confirmed with patches available in version 1.10.0. Signals on GitHub indicate that there are repositories with backpatch of the vulnerability. The criticality is confirmed by official sources and the potential impact size.

Immediately applicable defenses include updating to Apache Commons Text 1.10.0, reviewing configurations to eliminate the use of untrusted input in interpolations, and limiting scripting functionality where possible. Verify dependencies to identify all instances using vulnerable versions.

At a glance

What
Variable interpolation vulnerability allowing remote code execution
Severity
Critical (CVSS 9.8)
Affected versions
Apache Commons Text versions 1.5-1.9
Fix
Update to version 1.10.0
Status
Patch available
Action
Update affected instances immediately

Sources: NVD, CVE-2022-42889

← All articles