
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-42889, also known as Text4shell, is a critical vulnerability discovered in Apache Commons Text library versions 1.5 through 1.9. The vulnerability was reported by Alvaro Muñoz and disclosed in October 2022. The issue affects the StringSubstitutor interpolator class, which allows for string lookups that can lead to Remote Code Execution (RCE). The vulnerability received a CVSS score of 9.8 (Critical) (Apache Advisory, Sysdig Blog).
The vulnerability exists in the StringSubstitutor interpolator class where a default interpolator allows for string lookups using the format '${prefix:name}'. The problematic interpolators include 'script' (which can execute expressions using the JVM script execution engine), 'dns' (for resolving DNS records), and 'url' (for loading values from URLs, including remote servers). These lookup keys are interpolated by default, contrary to what the documentation of the StringLookupFactory class suggests (Sysdig Blog, OSS Security).
The vulnerability allows attackers to execute arbitrary code on affected systems when processing malicious input, potentially leading to complete system compromise. While rated as Critical with a CVSS score of 9.8, the actual impact is considered less severe than similar vulnerabilities like Log4Shell due to the limited usage of the StringSubstitutor object with user-controlled input in production environments (Sysdig Blog).
The primary mitigation is to upgrade to Apache Commons Text version 1.10.0, which disables the problematic interpolators by default. For systems that cannot be immediately upgraded, there are no documented workarounds (OSS Security, Gentoo Security).
The vulnerability gained significant attention due to its similarity to Log4Shell, though security researchers noted that its real-world impact would likely be less severe due to the more limited use of the vulnerable component. Various organizations and vendors, including NetApp and Red Hat, issued advisories and patches for their affected products (NetApp Security, Red Hat CVE).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."