Live threats

All CVEs / Apache

CVE-2022-42889Apache Commons Text

Critical 9.8 No auth neededHigh EPSS

Priority
83
CVSS 3.1
9.8
EPSS
95.2%
probability of exploitation in 30 days · percentile 100
Auth required
No
Published
Oct 13, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Commons Text.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven com.guicedee.services:commons-text ≤ 1.2.2.1-jre17 no fixed version —
Maven org.apache.commons:commons-text ≥ 1.5 < 1.10.0 1.10.0 —

Per OSV / GitHub Advisories (GHSA-599f-7c49-w659). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachecommons_text≥ 1.5 < 1.10.0
netappbluexpall
junipersecurity_threat_response_manager< 7.5.0
junipersecurity_threat_response_manager7.5.0
junipersecurity_threat_response_manager7.5.0
junipersecurity_threat_response_manager7.5.0
junipersecurity_threat_response_manager7.5.0

Official advisories

Also: Red Hat (+2)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.