Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.8

CVE-2022-42889: Apache Commons Text <1.10 can run code from crafted input

CVE-2022-42889 · published 4 years ago
Summary

Versions of Apache Commons Text earlier than 1.10 automatically allow special commands in text that can cause the program to execute code or reach out to external servers when it processes untrusted data. This could let an attacker run commands on your system or cause unwanted network connections. Update to version 1.10 or later, which turns off these dangerous features by default.

What to do
  • Update apache org.apache.commons:commons-text to version 1.10.0.
  • Update org.apache.commons:commons-text to version 1.9-aikido.1.
  • Update io.root.org.apache.commons:commons-text to version 1.9-root.io.1.
  • Update debian commons-text to version 1.10.0-1.
  • Update apache commons_text to version 1.10.0 or later.
  • Update juniper security_threat_response_manager to version 7.5.0 or later.
Affected software
Ecosystem VendorProductAffected versions
maven apache org.apache.commons:commons-text >= 1.5, < 1.10.0
Fix: upgrade to 1.10.0
maven guicedee com.guicedee.services:commons-text <= 1.2.2.1-jre17
– apache commons_text >= 1.5, < 1.10.0
cpe:2.3:a:apache:commons_text:*:*:*:*:*:*:*:*
– netapp bluexp All versions
cpe:2.3:a:netapp:bluexp:-:*:*:*:*:*:*:*
– juniper security_threat_response_manager < 7.5.0
7.5.0
cpe:2.3:a:juniper:security_threat_response_manager:*:*:*:*:*:*:*:*
Root:Maven – org.apache.commons:commons-text < 1.9-aikido.1
Fix: upgrade to 1.9-aikido.1
Root:Maven – io.root.org.apache.commons:commons-text < 1.9-root.io.1
Fix: upgrade to 1.9-root.io.1
Debian:12 debian commons-text < 1.10.0-1
Fix: upgrade to 1.10.0-1
Original advisory text
Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker full control
Severity
9.8 Critical
Exploitation
>99% chance of attack within 30 days
Type
CWE-94Code Injection
Timeline
Published13 Oct 2022
Updated21 Oct 2026
First seen6 Mar 2026
Track software like this
Free during beta