QID 377639

Date Published: 2022-10-21

QID 377639: Apache Commons Arbitrary Code Execution (ACE) Vulnerability (Text4Shell) (CVE-2022-42889)

Apache Commons Text is a popular open-source Java library with an "interpolation system" that allows developers to modify, decode, generate, and escape strings based on inputted string lookups. Apache Commons text is affected by a Arbitrary code execution Vulnerability dubbed as "Text4Shell.

Affected Versions:
Apache Commons Text Versions 1.5 to 1.9

QID Detection: (Authenticated) - Linux
Detection logic executes "locate -b -e -r '^commons-text.*\.jar$'", and "ls -l /proc/*/fd | grep -Eo '\S+\/commons-text\S+jar' | uniq 2> /dev/null" commands and checks if the vulnerable commons-text jar files present on the system.

QID Detection: (Authenticated) - MacOS
Detection logic executes locate and mdfind commands to check the presence of vulnerable commons-text jar files on a system.

QID Detection: (Authenticated) - AIX
Detection logic executes find command to check the presence of vulnerable commons-text jar files on a system.

Successful exploitation of this vulnerability could will allow an attacker to perform Arbitrary Code Execution.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as Critical - 10 severity.
  • Solution
    Customers are advised to visit Apache Commons Text for more information on this vulnerability.
    Vendor References

    CVEs related to QID 377639

    Software Advisories
    Advisory ID Software Component Link
    GHSA-599f-7c49-w659 URL Logo github.com/advisories/GHSA-599f-7c49-w659
    © CVE.report 2026 |

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report