vendor:
Apache Commons Text
by:
Arjun Chaudhary
6.1
CVSS
HIGH
Remote Code Execution (RCE)
RCE
CWE
Product Name: Apache Commons Text
Affected Version From: Less than 1.10.0
Affected Version To: 1.10.2000
Patch Exists: YES
Related CWE: CVE-2022-42889
CPE: a:apache:commons_text
Platforms Tested: Ubuntu 20.04
2025
Apache Commons Text 1.10.0 – Remote Code Execution (Text4Shell – POST-based)
The exploit allows remote code execution in Apache Commons Text version less than 1.10.0 by sending a malicious payload via a POST request. This exploit uses a script interpolator to execute arbitrary commands on the target system.
Mitigation:
Upgrade to Apache Commons Text version 1.10.0 or newer to prevent this vulnerability. Additionally, input validation and sanitization should be implemented to filter out potentially malicious payloads.