Skip to main content
CVE Radar
criticalRemote Code Execpublic exploit

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

Affects

Apache

4 products listed

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.

CISA

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

fixed129affected6not affected2385

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.

Affected vendors, products and versions
VendorProductVersionsStatus
ApacheApache Commons Textunspecified to <= 1.9Vulnerable
ApacheApache Commons Text1.5Vulnerable
Mavenorg.apache.commons:commons-text>= 1.5, < 1.10.0Vulnerable
Mavencom.guicedee.services:commons-text<= 1.2.2.1-jre17Vulnerable

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.

Every CVSS base score collected, by source and version
ScoreVersionSeverityExpl.ImpactSource
9.8CVSS 3.1critical3.95.9NVD, 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.

MITRE

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.

CAPEC-77 · Manipulating User-Controlled VariablesCAPEC-242 · Code InjectionCAPEC-35 · Leverage Executable Code in Non-Executable Files
  • 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.
web/proxy/WAF logsapplication logsnetwork IDS/IPSEDR process telemetryhost service logs

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.

KinsingKillnetTeamTNTRAZOR TIGERAPT32
  • 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

SOCRadar4 more indicators on this CVEShowing 5 of 9 · Hashes, addresses and domains from a live threat exchangeUnlock free

Timeline

What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.

  1. 2026
  2. Cve is exploited Hkaeeeer/CVE-2022-42889

    Jul 22, 2026 · SOCRadar CTI

  3. Added · CVSS 3.1 9.8 (AV:N)

    Jun 17, 2026 · NVD

  4. Cve is exploited KosmicOwl045/ICT287-CVE-2022-42889

    Mar 30, 2026 · SOCRadar CTI

  5. Cve is exploited Goultarde/CVE-2022-42889-text4shell

    Jan 14, 2026 · SOCRadar CTI

  6. 2025
  7. Cve is exploited Syndicate27/text4shell-exploit

    Jun 23, 2025 · SOCRadar CTI

  8. Added · webapps entry: Apache Commons Text 1.10.0 - 'Text4Shell' Remote Code Execution (RCE)

    Apr 18, 2025 · Exploit-DB

  9. 2022
  10. Initial · CVE published

    Oct 13, 2022 · NVD

  11. 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

Coverage

1 story from the feeds we poll

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

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.