QID 150586

Date Published: 2022-11-02

QID 150586: Apache Commons Text Remote Code Execution (RCE) Vulnerability (Text4Shell) (CVE-2022-42889)

Apache Commons Text is a commonly used library which focuses on algorithms working on string functionality. The library performs a process called variable interpolation, which evaluates the properties of strings that contain placeholders, in order to replace the placeholders with their corresponding values.

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.

Affected version:
Apache Commons Text from version 1.5 to 1.9

Successful exploitation of this vulnerability could allow an unauthenticated attacker to execute arbitrary code on the target system.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as Critical - 10 severity.
  • Solution
    Customers are advised to upgrade Apache Commons Text 1.10.0 version or later which disables the problem by default.
    Vendor References

    CVEs related to QID 150586

    Software Advisories
    Advisory ID Software Component Link
    Apache Common text downloads URL Logo commons.apache.org/proper/commons-text/changes-report.html