Apache Commons Text "text4shell" Vulnerability CVE-2022-42889 

Issue date: 18-10-2022
Affects versions: 15.1, 14.7, 13.4

Security Issue ID


Affected Product Version(s)

15.1.2, 14.7.10, 13.4.20, and all previous versions





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. These lookups are: - "script" - execute expressions using the JVM script execution engine (javax.script) - "dns" - resolve dns records - "url" - load values from urls, including from remote servers Applications using the interpolation defaults in the affected versions may be vulnerable to remote code execution or unintentional contact with remote servers if untrusted configuration values are used.

Bloomreach has confirmed that the brXM product is not vulnerable, but we cannot rule out that customer code using this library may be. As a rapid-response precaution, we have updated the version of Apache Commons Text used by our product to 1.10.0, which disables the problematic interpolators by default.


Upgrade to the latest version.