Vulnerabilities / CVE-2022-42889

critical

CVE-2022-42889

apache-commons-text: variable interpolation RCE

Published Modified CWE 94
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Red Hat. Rated lower by Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
maven::GitHub Security Advisory Mavencom.guicedee.services:commons-text, org.apache.commons:commons-text1.10.0
Red Hatcandlepin, candlepin-selinux, jenkins-2-pluginsno fix listed
debian 11commons-textno fix listed
debian 12commons-text1.10.0-1
debian 13commons-text1.10.0-1
debian 14commons-text1.10.0-1
echocommons-text1.10.0-1
seal Red Hat 7python-jinja2, seal-python-jinja22.7.2-4.el7+sp999
seal Red Hat 8libsolv, seal-libsolv0.7.20-6.el8+sp999
ubuntu 20.04-ESMcommons-textno fix listed
ubuntu 22.04commons-textno fix listed
Show all 16 entries from 11 sources
SourcePackageFixed in
maven::GitHub Security Advisory Mavencom.guicedee.services:commons-textno fix listed
maven::GitHub Security Advisory Mavenorg.apache.commons:commons-text1.10.0
Red Hatcandlepinno fix listed
Red Hatcandlepin-selinuxno fix listed
Red Hatjenkins-2-pluginsno fix listed
debian 11commons-textno fix listed
debian 12commons-text1.10.0-1
debian 13commons-text1.10.0-1
debian 14commons-text1.10.0-1
echocommons-text1.10.0-1
seal Red Hat 7python-jinja22.7.2-4.el7+sp999
seal Red Hat 7seal-python-jinja22.7.2-4.el7+sp999
seal Red Hat 8libsolv0.7.20-6.el8+sp999
seal Red Hat 8seal-libsolv0.7.20-6.el8+sp999
ubuntu 20.04-ESMcommons-textno fix listed
ubuntu 22.04commons-textno fix listed

References

All 18 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.