CVE-2022-42889 (Text4Shell) — Arbitrary code execution in...
Arbitrary code execution in Apache Commons Text
Summary
Advisory Timeline
- First published October 13, 2022 (1460 days ago).
- Last revised February 16, 2024 — 491 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 1.10.0 for org.apache.commons:commons-text -->
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: maven (2).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| com.guicedee.services:commons-text | maven | 0.70.0.1, 0.70.0.1-rc1, 0.70.0.1-rc13, 0.70.0.1-rc14 (+441 more) | Range-based data available |
| org.apache.commons:commons-text | maven | 1.5, 1.6, 1.7, 1.8 (+1 more) | 1.10.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-42889ADVISORY
- https://arxiv.org/pdf/2306.05534WEB
- https://github.com/apache/commons-textPACKAGE
- https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1omWEB
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022WEB
- https://security.gentoo.org/glsa/202301-05WEB
- https://security.netapp.com/advisory/ntap-20221020-0004WEB
- https://securitylab.github.com/advisories/GHSL-2022-018_Apache_Commons_TextADVISORY
- https://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.htmlWEB
- https://packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.htmlWEB
- https://seclists.org/fulldisclosure/2023/Feb/3WEB
- https://www.openwall.com/lists/oss-security/2022/10/13/4WEB
- https://www.openwall.com/lists/oss-security/2022/10/18/1WEB
Frequently Asked Questions
- What is CVE-2022-42889?
- Arbitrary code execution in Apache Commons Text This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2022-42889?
- CVE-2022-42889 affects com.guicedee.services:commons-text and org.apache.commons:commons-text. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-42889 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2015-7501CRITICAL
Deserialization of Untrusted Data in Apache commons collections
- CVE-2021-44228CRITICAL
Remote code injection in Log4j
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host
- CVE-2025-48734HIGH
Apache Commons Improper Access Control vulnerability
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies