Vulnerability
CVE-2022-42889
Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
Vulnerability details
- Score
- 9.8
- Severity
- critical
CVSS 3.1 · NVD
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDescription
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. Users are recommended to upgrade to Apache Commons Text 1.10.0, which disables the problematic interpolators by default.
CVE ProgramExploit source choices
37 sourcesThis exploit takes advantage of the StringSubstitutor interpolator class, which is included in the Commons Text library. A default interpolator allows for string lookups that can lead to Remote Code Execution. This is due to a logic flaw that makes the "script", "dns" and "url" lookup keys interpolated by default, as opposed to what it should be, according to the documentation of the StringLookupFactory class. Those keys allow an attacker to execute arbitrary code via lookups primarily using the "script" key. In order to exploit the vulnerabilities, the following requirements must be met: Run a version of Apache Commons Text from version 1.5 to 1.9 Use the StringSubstitutor interpolator Target should run JDK < 15
A fully automated, accurate, and extensive scanner for finding log4j RCE CVE-2021-44228
The security tool(project) Set from github。github安全项目工具集合
使用 Github Actions 跟踪 Github 趋势项目。
MIRROR Java sass compiler using libsass.
Dockerized POC for CVE-2022-42889 Text4Shell
Apache commons text - CVE-2022-42889 Text4Shell proof of concept exploit.
cve-2022-42889 Text4Shell CVE-2022-42889 affects Apache Commons Text versions 1.5 through 1.9. It has been patched as of Commons Text version 1.10.
Text4Shell的burp被动扫描插件
Proof of Concept for the Apache commons-text vulnerability CVE-2022-42889.
text4shell(CVE-2022-42889) BurpSuite Scanner
Proof of Concept for CVE-2022-42889 (Text4Shell Vulnerability)
This repository contains a Python script to automate the process of testing for a vulnerability known as Text4Shell, referenced under the CVE id: CVE-2022-42889.
A simple application that shows how to exploit the CVE-2022-42889 vulnerability
Proof of Concept Appliction for testing CVE-2022-42889
Script to handle CVE 2022-42889
A simple dockerize application that shows how to exploit the CVE-2022-42889 vulnerability.
Proof of Concept (PoC) for CVE-2022-42889 (Text4Shell) targeting Apache Commons Text versions prior to 1.10.0. This script automates Remote Code Execution (RCE) via script interpolation to establish a reverse shell. This version is a structured optimization based on the original exploit found at Exploit-DB (ID: 52261).
Vulnerability Scanner for CVE-2022-42889 (Text4Shell)
Python Script to exploit RCE of CVE-2022-42889
ClusterImagePolicy demo for cve-2022-42889 text4shell
iamsanjay/cve-2022-42899 source repository
python script for CVE-2022-42889
This project includes a python script which generates malicious commands leveraging CVE-2022-42889 vulnerability
通过 jvm 启动参数 以及 jps pid进行拦截非法参数
Kubernetes Lab for CVE-2022-42889
CVE-2022-42889 (a.k.a. Text4Shell) RCE Proof of Concept
A simple and fast Maven dependency vulnerability scanner. Check existence of vuln JARs (transitive)
CVE-2022-42889 - Text4Shell exploit
CVE-2022-42889 Text4Shell Exploit POC
A custom Python-based proof-of-concept (PoC) exploit targeting Text4Shell (CVE-2022-42889), a critical remote code execution vulnerability in Apache Commons Text versions < 1.10.
An intentionally vulnerable webapp to get your hands dirty with CVE-2022-42889.
RCE PoC for Apache Commons Text vuln
Dockerized POC for CVE-2022-42889 Text4Shell
adarshpv9746/text4shell--automated-exploit---cve-2022-42889 source repository
Security backport of Apache Commons Text 1.9 — CVE-2022-42889 (Text4Shell) fix from upstream 1.10.0