CVE-2022-42889
Exploitation reported by one source. First attested on 2022-10-20 by GCVE · kevintel.
- Published2022-10-13
- Fixed in7.5.0
- WeaknessCWE-94
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2022-10-1313:15CVE publishedNVD
- 2022-10-2011:40Listed as exploited by GCVEGCVE
- 2022-10-2011:40Exploitation first reportedGCVE
- 2025-04-18Exploit-DB entryExploit-DB
Observed activity
isMalicious corpus · updated 2026-11-03 15:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-42889?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-42889?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.5 | < 7.5.0 | 7.5.0 | NVD |
| 7.5 | = 7.5.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.x | ≥ 1.5, < 1.10.0 | 1.10.0 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | NVD |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache Commons TextAffected
- ≤ 1.9no fix statedcustom
- ≥ 1.5, < Apache Commons Text*fixed in Apache Commons Text*custom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-01-19
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- ansible-collection-redhat-satelliteRed Hat:satellite:6.13::el8all versions · fixed in 0:3.9.0-2.el8sat
- ansible-collection-redhat-satelliteRed Hat:satellite_capsule:6.13::el8all versions · fixed in 0:3.9.0-2.el8sat
- ansible-collection-redhat-satellite_operationsRed Hat:satellite:6.13::el8all versions · fixed in 0:1.3.0-2.el8sat
- ansible-collection-redhat-satellite_operationsRed Hat:satellite_capsule:6.13::el8all versions · fixed in 0:1.3.0-2.el8sat
- ansible-lintRed Hat:satellite:6.13::el8all versions · fixed in 0:5.0.8-4.el8pc
- ansible-lintRed Hat:satellite_capsule:6.13::el8all versions · fixed in 0:5.0.8-4.el8pc
- ansible-runnerRed Hat:satellite:6.13::el8all versions · fixed in 0:2.2.1-3.el8satand 1 other package
- ansible-runnerRed Hat:satellite_capsule:6.13::el8all versions · fixed in 0:2.2.1-3.el8sat
518 more package ranges on OSV.dev
Vendor advisories
apache-commons-text: variable interpolation RCE
commons-text as a component of Red Hat Integration Camel K 1 · commons-text as a component of Red Hat JBoss Enterprise Application Platform 7 · commons-text as a component of Red Hat JBoss Enterprise Application Platform Expansion Pack · +2 more
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.12 security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.9 on RHEL 7 security update
Red Hat Security Advisory: Red Hat AMQ Streams 2.7.0 release and security update
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
Red Hat Security Advisory: Jenkins and Jenkins-2-plugins security update
20 more advisories
Fix
- Update Juniper security threat response manager to 7.5.0
- Vendor fix Red Hat Product Security RHSA-2025:1747 · 52 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://access…
- Vendor fix Red Hat Product Security RHSA-2025:1746 · 37 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://access…
- Vendor fix Red Hat Product Security RHSA-2024:3527 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2024:0775 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2023:7288 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2023:2097 · 3 productsFor Red Hat Satellite 6.13, see the following documentation for the release. https://access.redhat.com/documentation/en-us/red_hat_satellite/6.13 The important instructions on how to upgrade are available below. https://access.redhat.com/documentation/en-us/red_hat_satellite/6.13/html/upgrading_an…
Advisories and patches
- lists.apache.orgVendor Advisory
Detection
read 2026-11-02 22:42 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof-of-concept repositories
- 20 repositories, unverifiedSeanWrightSec/CVE-2022-42889-PoCchainguard-dev/text4shell-policytulhan/commons-text-goatkarthikuj/cve-2022-42889-text4shell-dockerClickCyber/cve-2022-42889 PoC-in-GitHub
- Metasploit modules
- 1 moduleexploit/multi/http/apache_commons_text4shellrank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- GCVEexploitation2022-10-20
- CISA-ADPSSVC decisionnone2024-01-24
- OpenCVESSVC decisionnone—
- NVDCVSS 3.19.8read 2026-10-23
- NVDweakness (CWE)CWE-94read 2026-10-23
- FIRST EPSSEPSS score99.9 %read 2026-11-02
- PoC-in-GitHubproof of concept20read 2026-11-02
- Exploit-DBdetectionread 2026-11-02
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2022-10-13
Identifiers
- EUVD-2022-7022same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-599f-7c49-w659same flawGitHub Advisory Database · CC-BY-4.0
- exploit/multi/http/apache_commons_text4shellexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- openSUSE-SU-2024:12409-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:0261advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1524advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1655advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:2097advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:3195advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:3198advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:3299advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:6171advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:6172advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:6179advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:7288advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:0775advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:0776advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:0777advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:0778advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:1746advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:1747advisory covering several CVEsRed Hat · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2022-10-13
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-599f-7c49-w659
Frequently asked questions
What is CVE-2022-42889?
Is CVE-2022-42889 actively exploited?
What is the CVSS score for CVE-2022-42889?
Running apache-commons-text? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-599f-7c49-w659
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0