p PatchFirst

CVE-2022-42889

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

CVSS 9.8 · Critical · EPSS 99.9% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="commons-text"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • RHSA-2023:6179 · Red Hat ocp tools 4.13 el8 ·
  • RHSA-2025:1747 · Red Hat jboss enterprise application platform eus 7.3 el7 ·
  • RHSA-2025:1746 · Red Hat jboss enterprise application platform eus 7.1 el7 ·
  • RHSA-2024:0777 · Red Hat ocp tools 4.14 el8 ·
  • RHSA-2023:6172 · Red Hat ocp tools 4.12 el8 ·
  • RHSA-2023:6171 · Red Hat ocp tools 4.11 el8 ·
  • RHSA-2023:7288 · Red Hat ocp tools 4.14 el8 ·
  • RHSA-2023:3299 · Red Hat ocp tools 4.13 el8 ·
  • RHSA-2023:3198 · Red Hat ocp tools 4.11 el8 ·
  • RHSA-2023:2097 · Red Hat satellite 6.13 el8, Red Hat satellite capsule 6.13 el8, Red Hat satellite maintenance 6.13 el8, Red Hat satellite utils 6.13 el8 ·
  • RHSA-2024:0775 · Red Hat ocp tools 4.11 el8 ·
  • RHSA-2024:0778 · Red Hat ocp tools 4.12 el8 ·
  • RHSA-2024:0776 · Red Hat ocp tools 4.13 el8 ·
  • RHSA-2023:1524 · Red Hat openshift 4.9 el8 ·
  • RHSA-2023:0261 · Red Hat satellite 6.12 el8, Red Hat satellite capsule 6.12 el8, Red Hat satellite maintenance 6.12 el8, Red Hat satellite utils 6.12 el8 ·
  • RHSA-2023:3195 · Red Hat ocp tools 4.12 el8 ·
  • RHSA-2023:1655 · Red Hat openshift 4.10 el7, Red Hat openshift 4.10 el8 ·
  • openSUSE-SU-2024:12409-1 · openSUSE Tumbleweed ·

Stack: system

Affected products and versions

  • apache commons text

    Versions
    • ≥ unspecified, ≤ 1.9: Affected (custom)
    • ≥ 1.5, < Apache Commons Text*: Affected (custom)

    No fix published

  • commons-text Debian 12

    Affected ranges
    • ECOSYSTEM: < 1.10.0-1

    Update to 1.10.0-1

  • commons-text Debian 13

    Affected ranges
    • ECOSYSTEM: < 1.10.0-1

    Update to 1.10.0-1

  • commons-text Debian 14

    Affected ranges
    • ECOSYSTEM: < 1.10.0-1

    Update to 1.10.0-1

  • commons-text Ubuntu 20.04 LTS

    Versions
    • 1.8-1
    • 1.8-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • commons-text Ubuntu 22.04 LTS

    Versions
    • 1.9-1
    • 1.9-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →