CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HKnown as Act4Shell, Text4Shell
Critical (9.8). EPSS >99.9% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.commons:commons-text 1.10.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Horg.apache.commons:commons-text (Maven): fixed in 1.10.0Explain CVE-2022-42889 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-42889?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-42889?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-42889 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Apache Software Foundation Apache Commons Text | through 1.9 |
| Apache Software Foundation Apache Commons Text | from 1.5 before Apache Commons Text* |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-599f-7c49-w659 | Maven | org.apache.commons:commons-text | >=1.5 <1.10.0 | 1.10.0 |
| GHSA-599f-7c49-w659 | Maven | com.guicedee.services:commons-text | <=1.2.2.1-jre17 | no fix published |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | commons-text | 1.10.0-1 | DEBIAN-CVE-2022-42889 |
| Ubuntu | 20.04:LTS, 22.04:LTS | commons-text | no fix listed | UBUNTU-CVE-2022-42889 |
| Red Hat | jboss_enterprise_application_platform_eus:7.1::el7 | eap7-apache-cxf, eap7-apache-cxf-rt, eap7-apache-cxf-tools and 1 more | 0:3.1.16-4.redhat_00003.1.ep7.el7 | RHSA-2025:1746 |
| Red Hat | jboss_enterprise_application_platform_eus:7.1::el7 | eap7-jackson-databind | 0:2.8.11.6-2.SP1_redhat_00002.1.ep7.el7 | RHSA-2025:1746 |
| Red Hat | jboss_enterprise_application_platform_eus:7.1::el7 | eap7-jettison | 0:1.3.8-2.redhat_00002.1.ep7.el7 | RHSA-2025:1746 |
| Red Hat | jboss_enterprise_application_platform_eus:7.1::el7 | eap7-netty, eap7-netty-all | 0:4.1.63-1.Final_redhat_00002.1.ep7.el7 | RHSA-2025:1746 |
| Red Hat | jboss_enterprise_application_platform_eus:7.1::el7 | eap7-resteasy, eap7-resteasy-cdi, eap7-resteasy-jaxrs and 14 more | 0:3.0.27-1.Final_redhat_00001.1.ep7.el7 | RHSA-2025:1746 |
| Red Hat | jboss_enterprise_application_platform_eus:7.1::el7 | eap7-snakeyaml | 0:1.33.0-1.SP1_redhat_00001.1.ep7.el7 | RHSA-2025:1746 |
| Red Hat | jboss_enterprise_application_platform_eus:7.1::el7 | eap7-velocity | 0:1.7.0-3.redhat_00006.1.ep7.el7 | RHSA-2025:1746 |
| Red Hat | jboss_enterprise_application_platform_eus:7.1::el7 | eap7-wildfly, eap7-wildfly-modules | 0:7.1.9-2.GA_redhat_00002.1.ep7.el7 | RHSA-2025:1746 |
| Red Hat | jboss_enterprise_application_platform_eus:7.3::el7 | eap7-hal-console | 0:3.2.17-1.Final_redhat_00001.1.el7eap | RHSA-2025:1747 |
| Red Hat | jboss_enterprise_application_platform_eus:7.3::el7 | eap7-jackson-core, eap7-jackson-jaxrs-base, eap7-jackson-annotations and 5 more | 0:2.10.4-2.redhat_00004.1.el7eap | RHSA-2025:1747 |
| Red Hat | jboss_enterprise_application_platform_eus:7.3::el7 | eap7-jackson-databind, eap7-jackson-modules-base, eap7-jackson-module-jaxb-annotations | 0:2.10.4-4.redhat_00004.1.el7eap | RHSA-2025:1747 |
| Red Hat | jboss_enterprise_application_platform_eus:7.3::el7 | eap7-jettison | 0:1.5.2-2.redhat_00002.1.el7eap | RHSA-2025:1747 |
| 249 more for Red Hat in the JSON and on Red Hat's page. | ||||
| openSUSE | Tumbleweed | apache-commons-text | 1.10.0-1.1 | openSUSE-SU-2024:12409-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.
Red Hat rates this Critical.
In order to carry successful exploitation of this vulnerability, the following conditions must be in place on the affected target:
- Usage of specific methods that interpolate the variables as described in the flaw
- Usage of external input for those methods
- Usage of that external input has to be unsanitized/no "allow list"/etc.
The following products have *Low* impact because they have maven references to the affected package but do not ship it nor use the code:
- Red Hat EAP Expansion Pack (EAP-XP)
- Red Hat Camel-K
- Red Hat Camel-Quarkus
Red Hat Satellite ships Candlepin that embeds Apache Commons Text, however, it is not vulnerable to the flaw since the library has not been exposed in the product code. In Candlepin, the Commons Text is being pulled for the Liquibase and ActiveMQ Artemis libraries as a dependency. Red Hat Product Security has evaluated and rated the impact of the flaw as Low for Satellite since there was no harm identified to the confidentiality, integrity, or availability of systems.
- The OCP has a *Moderate* impact because the affected library is a third-party library in the OCP jenkins-2-plugin component which reduces the possibilities of successful exploitation.
- The OCP-4.8 is affected by this CVE and is in an extended life phase. For versions of products in the Extended Life Phase, Red Hat will provide limited ongoing technical support. No bug fixes, security fixes, hardware enablement or root-cause analysis will be available during this phase, and support will be provided on existing installations only.
This flaw may be avoided by ensuring that any external inputs used with the Commons-Text lookup methods are sanitized properly. Untrusted input should always be thoroughly sanitized before using in any potentially risky situations.
| Product | Package | State | Advisory |
|---|---|---|---|
| OCP-Tools-4.12-RHEL-8 | jenkins-2-plugins-0:4.12.1683009955-1.el8 | Fixed 2023-05-18 | RHSA-2023:3195 |
| OCP-Tools-4.12-RHEL-8 | jenkins-2-plugins-0:4.12.1698294000-1.el8 | Fixed 2023-10-30 | RHSA-2023:6172 |
| OCP-Tools-4.12-RHEL-8 | jenkins-2-plugins-0:4.12.1706515741-1.el8 | Fixed 2024-02-12 | RHSA-2024:0778 |
| OCP-Tools-4.13-RHEL-8 | jenkins-2-plugins-0:4.13.1684911916-1.el8 | Fixed 2023-05-24 | RHSA-2023:3299 |
| OCP-Tools-4.13-RHEL-8 | jenkins-2-plugins-0:4.13.1698292274-1.el8 | Fixed 2023-10-30 | RHSA-2023:6179 |
| OCP-Tools-4.13-RHEL-8 | jenkins-2-plugins-0:4.13.1706516346-1.el8 | Fixed 2024-02-12 | RHSA-2024:0776 |
| OCP-Tools-4.14-RHEL-8 | jenkins-2-plugins-0:4.14.1699356715-1.el8 | Fixed 2023-11-16 | RHSA-2023:7288 |
| OCP-Tools-4.14-RHEL-8 | jenkins-2-plugins-0:4.14.1706516441-1.el8 | Fixed 2024-02-12 | RHSA-2024:0777 |
| OpenShift Developer Tools and Services for OCP 4.11 | jenkins-2-plugins-0:4.11.1683009941-1.el8 | Fixed 2023-05-17 | RHSA-2023:3198 |
| OpenShift Developer Tools and Services for OCP 4.11 | jenkins-2-plugins-0:4.11.1698299029-1.el8 | Fixed 2023-10-30 | RHSA-2023:6171 |
| A-MQ Clients 2 | commons-text | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch6-rhel8 | Not affected | |
| Red Hat A-MQ Online | commons-text | Not affected | |
| Red Hat build of Apicurio Registry 2 | commons-text | Not affected | |
| Red Hat build of Debezium 1 | commons-text | Not affected | |
| Red Hat Data Grid 8 | commons-text | Not affected | |
| Red Hat Integration Camel K 1 | commons-text | Affected | |
| Red Hat JBoss Data Grid 7 | commons-text | Not affected | |
| Red Hat JBoss Enterprise Application Platform 6 | commons-text | Not affected | |
| Red Hat JBoss Enterprise Application Platform 7 | commons-text | Will not fix | |
| 39 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-42889.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.