CVE-2022-42889
Also known as: GHSA-599f-7c49-w659
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.
Severity
CVSS 3.x
9.8
- Exploitability
- 3.9
- Impact
- 5.9
- AV:N
- AC:L
- PR:N
- UI:N
- S:U
- C:H
- I:H
- A:H
Weakness Enumeration
Change History
Last Modified: Jun 17, 2026
Affected Packages
Maven org.apache.commons:commons-text: >= 1.5, < 1.10.0
Maven com.guicedee.services:commons-text: >= 0, <= 1.2.2.1-jre17
Known Affected Software Configurations
cpe:2.3:a:apache:commons_text:*:*:*:*:*:*:*:*
cpe:2.3:a:juniper:security_threat_response_manager:*:*:*:*:*:*:*:*
cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:-:*:*:*:*:*:*
cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up1:*:*:*:*:*:*
cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up2:*:*:*:*:*:*
cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up3:*:*:*:*:*:*
cpe:2.3:a:netapp:bluexp:-:*:*:*:*:*:*:*
cpe:2.3:h:juniper:jsa1500:-:*:*:*:*:*:*:*
cpe:2.3:h:juniper:jsa3500:-:*:*:*:*:*:*:*
cpe:2.3:h:juniper:jsa3800:-:*:*:*:*:*:*:*
References to Advisories, Solutions, and Tools
[security@apache.org] Third Party Advisory, VDB Entry
[security@apache.org] Mailing List, Third Party Advisory
[security@apache.org] Mailing List, Third Party Advisory
[security@apache.org] Mailing List, Third Party Advisory
[security@apache.org] Mailing List, Vendor Advisory
[security@apache.org] Third Party Advisory
[security@apache.org] Third Party Advisory
[security@apache.org] Third Party Advisory
[af854a3a-2127-422b-91ae-364da2661108] Third Party Advisory, VDB Entry