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.
CVE-2022-42889
“—” beside the score: it is equal to NVD's CVSS score.
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2022-10-13. NVD baseline CVSS 9.8; sources differ by 0.0.
Also known asEUVD-2022-7022 (ENISA EUVD) · GHSA-599f-7c49-w659 (GitHub Security Advisories)Source: ENISA EUVD
- High exploitation likelihood — EPSS 99.9%
- Public exploit code is available (Metasploit, other public proof-of-concept code)
A fix is available — apply it.
Fixed versions, as the CVE record's CNA (Apache Software Foundation) states them in the record's workaround: "Upgrade to Apache Commons Text 1.10.0."
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALmedium confidence
- EG Risk
- 99EG Risk 99/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity98% × 45%Impact severity (EG Severity): CVSS 9.8 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation99.9% × 40%FIRST EPSS: the 30-day exploitation probability when EchelonGraph scored this CVE.Automatability100% × 15%CISA's SSVC Automatable value: yes (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Track at low or medium mission impact; Attend at high (mission-essential systems).Exploitation none (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 99.9%
- EPSS %ILE
- 99th
- KEV
- Not listed
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (9.8): severity, escalated by confirmed exploitation. This CVE's 9.8 is its impact severity (EG Severity), not escalated.
- EG Severity
- 9.8 CRITICALCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
- EG Likelihood
- 99.9% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-01). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- None on record (CISA KEV, EG-KEV Tier 1)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Track at medium mission impactTrack at low or medium mission impact; Attend at high (mission-essential systems).CISA BOD 26-04: 3 days if the affected system is publicly exposed; 60 days if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track at low or medium mission impact; Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation none (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)3 days if the affected system is publicly exposed; 60 days if it is not.
The score's inputs: In CISA KEV no (CISA's KEV catalog) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Published
October 13, 2022
Last Modified
November 21, 2024
Advisory Details (9)
Auto-updated Oct 10, 2026Packet Storm
http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.htmlApache Commons Text: Arbitrary Code Execution (GLSA 202301-05) — Gentoo security
https://security.gentoo.org/glsa/202301-05oss-security - Re: CVE-2022-42889: Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
http://www.openwall.com/lists/oss-security/2022/10/18/1oss-security - CVE-2022-42889: Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
http://www.openwall.com/lists/oss-security/2022/10/13/4Full Disclosure: OXAS-ADV-2022-0002: OX App Suite Security Advisory
http://seclists.org/fulldisclosure/2023/Feb/3Vendor Advisories for CVE-2022-42889(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2025:1747Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.12 security update
- RHSA-2025:1746Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.9 on RHEL 7 security update
- RHSA-2024:3527Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat AMQ Streams 2.7.0 release and security update
- RHSA-2024:0775Red Hat Product SecurityHigh
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
- RHSA-2024:0778Red Hat Product SecurityHigh
Red Hat Security Advisory: Jenkins and Jenkins-2-plugins security update
- RHSA-2024:0777Red Hat Product SecurityHigh
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
- RHSA-2024:0776Red Hat Product SecurityHigh
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
- RHSA-2023:7288Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Product OCP Tools 4.14 Openshift Jenkins security update
- +12 more
Patch Availability(22)
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
(6 across 5 ecosystems)
Maven(2)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| com.guicedee.services:commons-text | 0.70.0.1 ... 1.2.2.1-jre17 (445 versions) |
| — |
| org.apache.commons:commons-text | 1.5, 1.6, 1.7, 1.8, 1.9 |
| — |
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| commons-text | 1.10.0-1 ... 1.9-2 (10 versions) |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| commons-text | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| commons-text | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| commons-text | — |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(5)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2022:8652CRITICAL2022-10-13
RHSA-2022:8652 — Critical
- Red HatRHSA-2022:8876CRITICAL2022-10-13
RHSA-2022:8876 — Critical
- Red HatRHSA-2022:8902CRITICAL2022-10-13
RHSA-2022:8902 — Critical
- Red HatRHSA-2022:9023CRITICAL2022-10-13
RHSA-2022:9023 — Critical
- Red HatRHSA-2023:0261CRITICAL2022-10-13
RHSA-2023:0261 — Critical
Data Freshness Timeline
(refreshed 17× in last 7d / 51× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. 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. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 3 repeat rows among the latest 78 are merged into the row they repeat.
- 2026-11-02 11:52 UTCEG score recompute
- 2026-11-02 11:52 UTCVendor advisory
- 2026-11-02 11:51 UTCGHSA enrichmentGHSA-599f-7c49-w659 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-01 12:17 UTCVendor advisory
- 2026-11-01 12:16 UTCGHSA enrichmentGHSA-599f-7c49-w659 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-01 08:24 UTCGHSA enrichmentGHSA-599f-7c49-w659 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-01 08:24 UTCEG score recompute
- 2026-10-31 12:41 UTCEG score recompute
- 2026-10-31 12:41 UTCVendor advisory
- 2026-10-30 13:06 UTCEG score recompute
- 2026-10-30 13:06 UTCVendor advisory
- 2026-10-29 13:31 UTCEG score recompute
- 2026-10-29 13:31 UTCVendor advisory
- 2026-10-28 13:56 UTCEG score recompute
- 2026-10-28 13:56 UTCVendor advisory
- 2026-10-27 14:05 UTCEG score recompute
- 2026-10-27 14:05 UTCVendor advisory
- 2026-10-26 13:55 UTCEG score recompute
- 2026-10-26 13:55 UTCVendor advisory
- 2026-10-25 16:29 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-10-25 13:57 UTCEG score recompute
- 2026-10-25 13:57 UTCVendor advisory
- 2026-10-24 14:22 UTCEG score recompute
- 2026-10-24 14:22 UTCVendor advisory
- 2026-10-23 14:48 UTCEG score recompute
Show 50 moreShow fewer
- 2026-10-23 14:48 UTCVendor advisory
- 2026-10-22 15:11 UTCEG score recompute
- 2026-10-22 15:11 UTCVendor advisory
- 2026-10-21 16:29 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-10-21 15:35 UTCEG score recompute
- 2026-10-21 15:35 UTCVendor advisory
- 2026-10-20 15:59 UTCEG score recompute
- 2026-10-20 15:59 UTCVendor advisory
- 2026-10-19 16:20 UTCVendor advisory
- 2026-10-18 16:44 UTCEG score recompute
- 2026-10-18 16:44 UTCVendor advisory
- 2026-10-18 08:25 UTCEG score recompute
- 2026-10-18 01:18 UTCEG score recompute
- 2026-10-18 01:18 UTCVendor advisory
- 2026-10-17 01:41 UTCEG score recompute
- 2026-10-17 01:41 UTCVendor advisory
- 2026-10-16 02:05 UTCEG score recompute
- 2026-10-16 02:05 UTCVendor advisory
- 2026-10-14 21:52 UTCEG score recompute
- 2026-10-14 21:52 UTCVendor advisory
- 2026-10-13 17:39 UTCEG score recompute
- 2026-10-13 17:39 UTCVendor advisory
- 2026-10-12 18:02 UTCEG score recompute
- 2026-10-12 18:02 UTCVendor advisory
- 2026-10-11 22:09 UTCEG score recompute
- 2026-10-04 23:19 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-09-30 16:07 UTCEG score recompute
- 2026-09-24 07:56 UTCOSV refresh
- 2026-09-07 15:58 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-09-05 01:48 UTCOSV refresh
- 2026-08-24 14:13 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-08-18 13:01 UTCOSV refresh
- 2026-08-13 21:58 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-08-11 13:39 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-08-06 13:44 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-08-03 08:27 UTCOSV refresh
- 2026-07-30 01:28 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-07-28 15:34 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-07-23 02:14 UTCEG score recompute
- 2026-07-22 23:02 UTCEG score recompute
- 2026-07-16 17:53 UTCOSV refresh
- 2026-07-05 02:28 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-06-28 16:32 UTCOSV refresh
- 2026-06-15 17:46 UTCEPSS rescoreEPSS 99.9% · 99th percentile
- 2026-06-11 06:39 UTCOSV refresh
- 2026-06-01 13:50 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-05-27 13:39 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-05-25 13:53 UTCEG score recompute
- 2026-05-25 13:53 UTCVendor advisory
- 2026-05-24 00:22 UTCOSV refresh
Publicly available exploits
(13 references, 10 shown)Public exploit code is referenced for this CVE (1 Metasploit module, 1 Exploit-DB entry, 10 GitHub PoCs), as is 1 GitHub checker repository. A GitHub repository named or described as a checker or scanner checks whether a system is affected; it is not necessarily exploit code. Defenders should treat patch urgency accordingly.
- Metasploitexploit/multi/http/apache_commons_text4shell✓ verifiedPublished Jan 19, 2024
Apache Commons Text RCE
Open source ↗ - GitHub PoCifconfig-me/Log4Shell-PayloadsPublished Jul 23, 2025
Log4Shell / Log4J Payload - CVE-2021-45046 and CVE-2022-42889
Open source ↗ - Exploit-DBEDB-52261Published Apr 18, 2025
Apache Commons Text 1.10.0 - Remote Code Execution
Open source ↗ - GitHub PoCalealeluyah/CVE-2022-42889-Text4Shell-POCPublished 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 checkerf0ng/text4shellburpscannerPublished Dec 9, 2022
text4shell(CVE-2022-42889) BurpSuite Scanner
Open source ↗ - GitHub PoCcryxnet/CVE-2022-42889-RCEPublished Nov 4, 2022
Proof of Concept for CVE-2022-42889 (Text4Shell Vulnerability)
Open source ↗ - GitHub PoCcxzero/CVE-2022-42889-text4shellPublished Oct 23, 2022
CVE-2022-42889 aka Text4Shell research & PoC
Open source ↗ - GitHub PoCsecurekomodo/text4shell-pocPublished Oct 20, 2022
Proof of Concept Appliction for testing CVE-2022-42889
Open source ↗ - GitHub PoCkljunowsky/CVE-2022-42889-text4shellPublished Oct 19, 2022
Apache commons text - CVE-2022-42889 Text4Shell proof of concept exploit.
Open source ↗ - GitHub PoCClickCyber/cve-2022-42889Published 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 ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat:RHSA-2023:1655 · redhat:RHSA-2023:3195 · redhat:RHSA-2022:8652
Frequently asked(5)
What is CVE-2022-42889?
When was the CVE record for CVE-2022-42889 published?
Is CVE-2022-42889 actively exploited?
What is the CVSS score of CVE-2022-42889?
How do I remediate CVE-2022-42889?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2022-42889
Is Your Infrastructure Affected by CVE-2022-42889?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.