CVE-2022-42889
CVE-2022-42889 — Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
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.
Published Updated Sources: NVD, Apache Software Foundation (CNA), GitHub, GitHub Security Advisory, Exploit-DB, Red Hat (VEX), SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Reported
not confirmed by CISA
EPSS
100%
top of FIRST's scoreset
CVSS base
9.8
critical
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade org.apache.commons:commons-text to 1.10.0 or later (maven advisory GHSA-599f-7c49-w659).
Red Hat VEX · CVE-2022-42889
vendor_fix: Before applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications,…
vendor_fix: Before applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications,…
vendor_fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Apache | Apache Commons Text | unspecified to <= 1.9 | Vulnerable |
| Apache | Apache Commons Text | 1.5 | Vulnerable |
| Maven | org.apache.commons:commons-text | >= 1.5, < 1.10.0 | Vulnerable |
| Maven | com.guicedee.services:commons-text | <= 1.2.2.1-jre17 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
High
Confidentiality
High
Integrity
High
Scope
Unchanged
Attack Complexity
Low
Attack Vector
Network
Privileges Req
None
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | critical | 3.9 | 5.9 | NVD, GHSA, Red Hat (VEX) |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-94 · Improper Control of Generation of Code ('Code Injection')
- Bypass Protection Mechanism
- Gain Privileges or Assume Identity
- Execute Unauthorized Code or Commands
- Hide Activities
Mitigation: Refactor your program so that you do not have to dynamically generate code.
Weakness & attack patterns
- CWE-94Code Injection
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1027.006Obfuscated Files or Information: HTML Smuggling
- T1027.009Obfuscated Files or Information: Embedded Payloads
- T1564.009Hide Artifacts: Resource Forking
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
291
1 of the 5 sampled are weaponized
Exploit entries
48
Exploit-DB and CTI exploit indexes
Malware
Families a CTI source ties to this CVE. One named, with the total it tracks.
Families tracked
1
Named
Cobalt Strike
Cobalt Strike
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable Apache Commons Text, Org.apache.commons:commons-text, Com.guicedee.services:commons-text.
- Monitor for scanner or exploit-pattern traffic after 339 public PoC repositories were reported.
Groups associated with this CVE
Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.
- ip167.94.146.6064
SANS Wide Scanners Feeds · Nov 17, 2021
- hashf50957a5c8789ba9a5051fb0d62d9747ce046fdd495f67db4d1016082f77495f53
SOCRadar Threat Exchange Services · Oct 29, 2026
- hash522944015988938ac57e837aaa75134f10916170
SOCRadar Threat Exchange Services · Sep 26, 2026
- hash0b8593f2981a59e9e7fec3416708d8a6
SOCRadar Threat Exchange Services · Sep 26, 2026
- hash97075e58215cb48709cede27ef76e6ea668dc6c5
SOCRadar Threat Exchange Services · Oct 29, 2026
4 more indicators on this CVEShowing 5 of 9 · Hashes, addresses and domains from a live threat exchangeUnlock freeTimeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Cve is exploited Hkaeeeer/CVE-2022-42889
Jul 22, 2026 · SOCRadar CTI
Added · CVSS 3.1 9.8 (AV:N)
Jun 17, 2026 · NVD
Cve is exploited KosmicOwl045/ICT287-CVE-2022-42889
Mar 30, 2026 · SOCRadar CTI
Cve is exploited Goultarde/CVE-2022-42889-text4shell
Jan 14, 2026 · SOCRadar CTI
- 2025
Cve is exploited Syndicate27/text4shell-exploit
Jun 23, 2025 · SOCRadar CTI
Added · webapps entry: Apache Commons Text 1.10.0 - 'Text4Shell' Remote Code Execution (RCE)
Apr 18, 2025 · Exploit-DB
- 2022
Initial · CVE published
Oct 13, 2022 · NVD
Added · GHSA-599f-7c49-w659 published (critical)
Oct 13, 2022 · GitHub Security Advisory
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 24×SVRS was changedMay 18, 2025 – Jul 22, 2026 · SOCRadar CTI
- 7×Github ReposJul 23, 2025 – Jul 15, 2026 · SOCRadar CTI
- 4×Tweets · 1 time tweeted.Jun 19, 2025 – Oct 23, 2025 · SOCRadar CTI
- 1×CVE appeared in the Cve Trends.Jan 2, 2026 · SOCRadar CTI
References
24 on the record
- packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html
Third Party Advisory, VDB Entry, GITHUB, NIST
- packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.html
Vendor Advisory, GITHUB, NIST
- seclists.org/fulldisclosure/2023/Feb/3
Mailing List, Third Party Advisory, NIST, Mitre
- www.openwall.com/lists/oss-security/2022/10/13/4
Mailing List, Third Party Advisory, MITRE, NIST, Mitre
- www.openwall.com/lists/oss-security/2022/10/18/1
Mailing List, Third Party Advisory, NIST, Mitre
- lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om
Mailing List, Vendor Advisory, MITRE, NIST, MITRE_REFERENCES
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022
Third Party Advisory, NIST
- security.gentoo.org/glsa/202301-05
Third Party Advisory, NIST, Mitre
Coverage
1 story from the feeds we poll
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-32432 Craft CMS Allows Remote Code ExecutionCVSS 10.0 · CISA KEV
- CVE-2024-4040 CrushFTP VFS Sandbox Escape VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2022-24816 Improper Control of Generation of Code in jai-extCVSS 10.0 · CISA KEV
- CVE-2022-22947 VMware Spring Cloud Gateway Code Injection VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2021-22205 GitLab Community and Enterprise Editions Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2019-7609 Kibana Arbitrary Code ExecutionCVSS 10.0 · CISA KEV
Elsewhere on this site
- Apacheevery CVE for this vendor
- Mavenevery CVE for this vendor
- Apache Commons Textevery page on this product
- Remote Code Execsame class
- CWE-94other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- Only the 5 indicator(s) reported for this CVE are available; no packet-level or host-forensic artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2022-42889 is Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults, a critical vulnerability affecting Apache Commons Text, Org.apache.commons:commons-text, Com.guicedee.services:commons-text from Apache Software Foundation, Maven. The current evidence does not list it in CISA KEV, and the exploit status is: Exploitation is reported, but no independent confirmation is available in the sources we have. Public exploit evidence is: 339 public PoC repositories reported; 1 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 9.8 describes technical severity, while EPSS 100% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.