CVE-2022-42889 | Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults

Exp

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: 2022-10-13 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-42889 is rated High Exploit Risk (89.3/100): CVSS Critical severity, with high exploitation likelihood (EPSS 94.25%, 100th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2022-42889

EDB-ID Source Kind Published Link
52261 exploit_db edb 2025-04-18 Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2022-42889

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-03-04 94.08% 94.25% +0.17%
2 2026-02-26 94.25% 94.08% -0.17%
3 2026-01-18 94.25%

Full EPSS history (37 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-42889

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]

Weakness enumeration for CVE-2022-42889

GitHub Security Advisory for CVE-2022-42889

GHSA-599f-7c49-w659 · Severity: critical · Ecosystem: maven — Arbitrary code execution in Apache Commons Text

OS Trackers for CVE-2022-42889

vendor priority summary link
debian not yet assigned CVE-2022-42889 not yet assigned priority: Debian including 1 source packages (commons-text), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 4, open 1. https://security-tracker.debian.org/tracker/CVE-2022-42889
gentoo high CVE-2022-42889: 1 GLSA(s) (202301-05), 1 atom(s) (dev-java/commons-text); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-42889
redhat critical https://access.redhat.com/security/cve/CVE-2022-42889
suse critical https://www.suse.com/security/cve/CVE-2022-42889/
ubuntu medium CVE-2022-42889 medium priority: Ubuntu including 1 source packages (commons-text), 13 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): ignored 6, not-affected 3, needed 2, DNE 1, released 1. https://ubuntu.com/security/CVE-2022-42889

Affected software / configurations for CVE-2022-42889

Vendor Product Version Raw CPE
apache commons_text >= 1.5, < 1.10.0 cpe:2.3:a:apache:commons_text:*:*:*:*:*:*:*:*
netapp bluexp cpe:2.3:a:netapp:bluexp:-:*:*:*:*:*:*:*
juniper security_threat_response_manager < 7.5.0 cpe:2.3:a:juniper:security_threat_response_manager:*:*:*:*:*:*:*:*
juniper security_threat_response_manager 7.5.0 cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:-:*:*:*:*:*:*
juniper security_threat_response_manager 7.5.0 cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up1:*:*:*:*:*:*
juniper security_threat_response_manager 7.5.0 cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up2:*:*:*:*:*:*
juniper security_threat_response_manager 7.5.0 cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up3:*:*:*:*:*:*

References for CVE-2022-42889

URL Tags
http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.html
http://seclists.org/fulldisclosure/2023/Feb/3 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/10/13/4 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/10/18/1 Mailing List Third Party Advisory
https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om Mailing List Vendor Advisory
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022 Third Party Advisory
https://security.gentoo.org/glsa/202301-05 Third Party Advisory
https://security.netapp.com/advisory/ntap-20221020-0004/ Third Party Advisory
cvelogic Threat Intelligence