CVE-2022-42889
publishedApache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Commons Textunspecified through 1.9 · 1.5 to < Apache Commons Text* | Affected | Not stated | apache |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-textaarch64 | Advisory build | 1.10.0-1.1 | OPENSUSE-SU-2024:12409-1 |
| Rocky Linux | 8 | libdb-cxxx86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-textppc64le | Advisory build | 1.10.0-1.1 | OPENSUSE-SU-2024:12409-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-texts390x | Advisory build | 1.10.0-1.1 | OPENSUSE-SU-2024:12409-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-textx86_64 | Advisory build | 1.10.0-1.1 | OPENSUSE-SU-2024:12409-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-text-javadocaarch64 | Advisory build | 1.10.0-1.1 | OPENSUSE-SU-2024:12409-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-text-javadocppc64le | Advisory build | 1.10.0-1.1 | OPENSUSE-SU-2024:12409-1 |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-text-javadocs390x | Advisory build | 1.10.0-1.1 | OPENSUSE-SU-2024:12409-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-text-javadocx86_64 | Advisory build | 1.10.0-1.1 | OPENSUSE-SU-2024:12409-1 |
| Rocky Linux | 8 | libdb-cxx-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-sql-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-sql-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-utils-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Commons Text | unspecified through 1.9 (affected · custom)1.5 to < Apache Commons Text* (affected · custom) | apache · cna |
Weaknesses
1- Unexpected variable interpolation
References
9- http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html
- http://packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.html
- 20230214 OXAS-ADV-2022-0002: OX App Suite Security Advisory http://seclists.org/fulldisclosure/2023/Feb/3
- [oss-security] 20221013 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/4
- [oss-security] 20221017 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/1
- https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022
- GLSA-202301-05 https://security.gentoo.org/glsa/202301-05
- https://security.netapp.com/advisory/ntap-20221020-0004/
Provider assertions
3apache · cna
Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4956c66328dfd5c26c621f8f14d00635405d13caa47f102a560498fb61983f61
- Ingested
- 23 Sep 2026, 08:02:53 UTC
- Source record
- Official CVE record