CVEfocus › CVE database › CVE-2022-42889

CVE-2022-42889Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to…

CVSS 9.8 CriticalEPSS 99.9% (in the top 1% of all CVEs)Published 2022-10-13Updated 2024-11-20Assigner: apache

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.

What to do

Likely to be exploited: EPSS gives a 100% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.

Maven, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
3Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04commons-textNot affected
vulnerable_code_not_present
Ubuntu 25.10commons-textNot affected
vulnerable_code_not_present
Ubuntu 24.04commons-textNot affected
vulnerable_code_not_present
Ubuntu 22.04commons-textFix pendingUBUNTU-CVE-2022-42889
Ubuntu 20.04commons-textFix pendingUBUNTU-CVE-2022-42889
Debian 14commons-textFixed1.10.0-1DEBIAN-CVE-2022-42889
Debian 13commons-textFixed1.10.0-1DEBIAN-CVE-2022-42889
Debian 12commons-textFixed1.10.0-1DEBIAN-CVE-2022-42889
Maven librarycom.guicedee.services:commons-textFix pendingGHSA-599f-7c49-w659
Maven libraryorg.apache.commons:commons-textFixed1.10.0GHSA-599f-7c49-w659

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Upgrade to Apache Commons Text 1.10.0.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.