CVE-2022-42889

CRITICALNVD 9.89.8
EchelonGraph scoreHIGH confidence

Score elevated to 9.8 because EPSS predicts 94% probability of exploitation within the next 30 days (top 0.1% of all CVEs). NVD baseline CVSS 9.8 retained for reference. Confidence: see factors.

Triggered by: EPSS exploit prediction ≥85%
Sources: epss, nvd
Weaponized
9.8
EchelonGraph verdictPatch this weekExploitation is likely or a public exploit exists.
  • High exploitation likelihood — EPSS 100%
CISA-KEV: Not listedEPSS: 100%CVSS: 9.8Exploit: NoneExposed: 0

A fix is available — apply it.

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.

CVSS v3
9.8
EG Score
9.8(high)
EPSS
100.0%
KEV
Not listed

Published

October 13, 2022

Last Modified

November 21, 2024

Patch Availability(20)

Vendor / EcosystemFixed in / PatchReleasedSource
redhateap7-wildfly-0:7.1.9-2.GA_redhat_00002.1.ep7.el72025-02-24redhat
redhateap7-wildfly-0:7.3.12-3.GA_redhat_00002.1.el7eap2025-02-24redhat
redhatpatch2024-05-30redhat
redhatjenkins-2-plugins-0:4.11.1706516946-1.el82024-02-12redhat
redhatjenkins-2-plugins-0:4.14.1706516441-1.el82024-02-12redhat
redhatjenkins-2-plugins-0:4.13.1706516346-1.el82024-02-12redhat
redhatjenkins-2-plugins-0:4.12.1706515741-1.el82024-02-12redhat
redhatjenkins-2-plugins-0:4.14.1699356715-1.el82023-11-16redhat
redhatjenkins-2-plugins-0:4.13.1698292274-1.el82023-10-30redhat
redhatjenkins-2-plugins-0:4.11.1698299029-1.el82023-10-30redhat
redhatjenkins-2-plugins-0:4.12.1698294000-1.el82023-10-30redhat
redhatjenkins-2-plugins-0:4.13.1684911916-1.el82023-05-24redhat
redhatjenkins-2-plugins-0:4.12.1683009955-1.el82023-05-18redhat
redhatjenkins-2-plugins-0:4.11.1683009941-1.el82023-05-17redhat
redhatcommons-text2023-05-04redhat
redhatcandlepin-0:4.2.13-1.el8sat2023-05-03redhat
redhatjenkins-2-plugins-0:4.10.1680703106-1.el82023-04-12redhat
redhatjenkins-2-plugins-0:4.9.1680069756-1.el82023-04-05redhat
redhatpatch2023-03-08redhat
redhatcandlepin-0:4.1.18-1.el8sat2023-01-18redhat

Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.

Affected Packages

(2 across 1 ecosystem)
Maven(2)
PackageVulnerable rangeFixed inDependents
com.guicedee.services:commons-text0.70.0.1 ... 1.2.2.1-jre17 (445 versions)
org.apache.commons:commons-text1.5, 1.6, 1.7, 1.8, 1.91.10.0

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Additional Vendor Advisories

(12)

Data Freshness Timeline

(refreshed 1× in last 7d / 3× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-07-05 02:28 UTCEPSS rescore
  2. 2026-06-28 16:32 UTCOSV refresh
  3. 2026-06-15 17:46 UTCEPSS rescore
  4. 2026-06-11 06:39 UTCOSV refresh
  5. 2026-06-01 13:50 UTCEPSS rescore
  6. 2026-06-01 13:50 UTCEPSS rescore
  7. 2026-05-27 13:39 UTCEPSS rescore
  8. 2026-05-27 13:39 UTCEPSS rescore
  9. 2026-05-25 13:53 UTCEG score recompute
  10. 2026-05-25 13:53 UTCVendor advisory
  11. 2026-05-24 00:22 UTCOSV refresh

Publicly available exploits

(10 references)

Working exploit code is in the public domain (9 GitHub PoCs) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.

  • GitHub PoCifconfig-me/Log4Shell-Payloads
    First seen Jul 23, 2025

    Log4Shell / Log4J Payload - CVE-2021-45046 and CVE-2022-42889

    Open source ↗
  • Exploit-DBEDB-52261
    First seen Apr 18, 2025

    Apache Commons Text 1.10.0 - Remote Code Execution

    Open source ↗
  • GitHub PoCalealeluyah/CVE-2022-42889-Text4Shell-POC
    First seen Jun 27, 2023

    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.

    Open source ↗
  • GitHub PoCf0ng/text4shellburpscanner
    First seen Dec 9, 2022

    text4shell(CVE-2022-42889) BurpSuite Scanner

    Open source ↗
  • GitHub PoCcryxnet/CVE-2022-42889-RCE
    First seen Nov 4, 2022

    Proof of Concept for CVE-2022-42889 (Text4Shell Vulnerability)

    Open source ↗
  • GitHub PoCcxzero/CVE-2022-42889-text4shell
    First seen Oct 23, 2022

    CVE-2022-42889 aka Text4Shell research & PoC

    Open source ↗
  • GitHub PoCsecurekomodo/text4shell-poc
    First seen Oct 20, 2022

    Proof of Concept Appliction for testing CVE-2022-42889

    Open source ↗
  • GitHub PoCkljunowsky/CVE-2022-42889-text4shell
    First seen Oct 19, 2022

    Apache commons text - CVE-2022-42889 Text4Shell proof of concept exploit.

    Open source ↗
  • GitHub PoCkarthikuj/cve-2022-42889-text4shell-docker
    First seen Oct 18, 2022

    Dockerized POC for CVE-2022-42889 Text4Shell

    Open source ↗
  • GitHub PoCClickCyber/cve-2022-42889
    First seen Oct 18, 2022

    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.

    Open source ↗

Frequently asked(5)

What is CVE-2022-42889?
CVE-2022-42889 is a critical vulnerability published on October 13, 2022. 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.…
When was CVE-2022-42889 disclosed?
CVE-2022-42889 was first published in the National Vulnerability Database on October 13, 2022, with the most recent update on November 21, 2024. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2022-42889 actively exploited?
CVE-2022-42889 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 100.0% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2022-42889?
CVE-2022-42889 has a CVSS v3 base score of 9.8 (NVD).
How do I remediate CVE-2022-42889?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2022-42889, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2022-42889

Explore →

Is Your Infrastructure Affected by CVE-2022-42889?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.