Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.commons:commons-textMaven | >= 1.5, < 1.10.0 | 1.10.0 |
com.guicedee.services:commons-textMaven | <= 1.2.2.1-jre17 | — |
Affected products
4- ghsa-coords3 versionspkg:maven/com.guicedee.services/commons-textpkg:maven/org.apache.commons/commons-textpkg:rpm/opensuse/apache-commons-text&distro=openSUSE%20Tumbleweed
<= 1.2.2.1-jre17+ 2 more
- (no CPE)range: <= 1.2.2.1-jre17
- (no CPE)range: >= 1.5, < 1.10.0
- (no CPE)range: < 1.10.0-1.1
- Range: unspecified
Patches
Vulnerability mechanics
References
14- github.com/advisories/GHSA-599f-7c49-w659ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-42889ghsaADVISORY
- security.gentoo.org/glsa/202301-05ghsavendor-advisoryWEB
- securitylab.github.com/advisories/GHSL-2022-018_Apache_Commons_TextghsaADVISORY
- packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.htmlghsaWEB
- packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.htmlghsaWEB
- seclists.org/fulldisclosure/2023/Feb/3ghsamailing-listWEB
- www.openwall.com/lists/oss-security/2022/10/13/4ghsamailing-listWEB
- www.openwall.com/lists/oss-security/2022/10/18/1ghsamailing-listWEB
- arxiv.org/pdf/2306.05534ghsaWEB
- lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1omghsaWEB
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022ghsaWEB
- security.netapp.com/advisory/ntap-20221020-0004ghsaWEB
- security.netapp.com/advisory/ntap-20221020-0004/mitre
News mentions
0No linked articles in our index yet.