Skip to content
← Browse CVEs

CVE-2022-42889

Critical · CVSS 9.8EPSS 99.9%CWE-94 · Code Injection

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

Community ground truth

Community verdict

3 verdicts
Not a real issue

Includes TruePositive's curated baseline from public sources — community verdicts accrue on top.

to add your verdict.

Community real-world severity: Medium (Medium 2 · Low 1) — CVSS base score 9.8

Practitioners rate this lower than its CVSS — likely over-rated by the score.

Field notes & remediation

Verdicts are the quick signal — notes are the evidence and fixes behind them.

  • 0
    Field note · Waleed AzizCurated

    Named '4Shell' for clicks, but it is not Log4Shell. Exploitable only if the app passes untrusted input into Commons Text StringSubstitutor with the default interpolators (Commons Text 1.5–1.9). That pattern is rare in real apps — the method is explicitly meant for interpolation, so devs don't usually feed it attacker data. Mostly a scanner finding, not an incident.

  • 0
    Remediation · Mara OkonkwoCurated

    Upgrade Apache Commons Text to 1.10.0 (default interpolators disabled). Before panicking, grep for actual StringSubstitutor/createInterpolator use on untrusted input — most codebases have none.