CVE catalog

CVE-2022-42889

commons-text: CVE-2022-42889

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
99.93% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancommons-textsid1.15.0-1fixed
Debiancommons-textforky1.15.0-1fixed
Debiancommons-texttrixie1.13.1-1fixed
Debiancommons-textbookworm1.10.0-1fixed
Opensuseapache-commons-texttumbleweed1.10.0-1.1fixed
Ubuntucommons-text20.041.8-1vulnerable
Ubuntucommons-text20.041.8-2vulnerable
Ubuntucommons-text22.041.9-1vulnerable
Ubuntucommons-text22.041.9-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancommons-textsourcesid1.10.0-1not yet assignedNot reported[1021787]
Debiancommons-textsourceforky1.10.0-1not yet assignedNot reported[1021787]
Debiancommons-textsourcetrixie1.10.0-1not yet assignedNot reported[1021787]
Debiancommons-textsourcebookworm1.10.0-1not yet assignedNot reported[1021787]
Opensuseapache-commons-textrpmtumbleweed1.10.0-1.1Not reportedOPENSUSE-SU-2024:12409-1Not reported

[Debian bug #1021787]

OpenFactory catalog packages

[openSUSE Tumbleweed]

[Debian 12 (Bookworm)]

  • Source package: [commons-text]

    Details (2)
    • 1.10.0-1 · all · bookworm

      Fixed · Fixed: 1.10.0-1

      dsa · commons-text · debian · bookworm

    • 1.10.0-1 · all · bookworm

      Fixed · Fixed: 1.10.0-1

      dsa · commons-text · debian · bookworm

Observed:

References