# CVE-2022-42889: Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 99.9%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-10-13T00:00:00.000Z
- Modified: 2026-06-17T05:05:31.850Z
- Also known as: GHSA-599f-7c49-w659
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

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

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Commons Text: from unspecified up to 1.9; from 1.5 before Apache Commons Text*
- org.apache.commons:commons-text (Maven): from 1.5 before 1.10.0
- com.guicedee.services:commons-text (Maven): up to 1.2.2.1-jre17
- apache commons_text: from 1.5 before 1.10.0
- netapp bluexp: no versions given
- juniper security_threat_response_manager: before 7.5.0; 7.5.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html> (exploit, third-party-advisory, vdb-entry, web)
- <http://packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.html> (exploit, web)
- <https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/10/13/4> (mailing-list, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/10/18/1> (mailing-list, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20221020-0004/> (third-party-advisory)
- <https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022> (third-party-advisory, web)
- <https://security.gentoo.org/glsa/202301-05> (third-party-advisory, vendor-advisory, web)
- <http://seclists.org/fulldisclosure/2023/Feb/3> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-42889> (advisory)
- <https://arxiv.org/pdf/2306.05534> (web)
- <https://github.com/apache/commons-text> (package)
- <https://security.netapp.com/advisory/ntap-20221020-0004> (web)
- <https://securitylab.github.com/advisories/GHSL-2022-018_Apache_Commons_Text> (advisory)

## Sources

- CVE List: [CVE-2022-42889](https://www.cve.org/CVERecord?id=CVE-2022-42889), CVE Terms of Use, modified 2024-11-20
- GitHub Advisory Database: [GHSA-599f-7c49-w659](https://github.com/advisories/GHSA-599f-7c49-w659), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-42889](https://nvd.nist.gov/vuln/detail/CVE-2022-42889), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-42889 · Whole record: https://cve.day/CVE-2022-42889.json · Rebuilt by cve.day 2026-11-25T22:58:15.666Z
