CVE-2022-42889Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to…
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | commons-text | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | commons-text | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | commons-text | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | commons-text | Fix pending | UBUNTU-CVE-2022-42889 | |
| Ubuntu 20.04 | commons-text | Fix pending | UBUNTU-CVE-2022-42889 | |
| Debian 14 | commons-text | Fixed | 1.10.0-1 | DEBIAN-CVE-2022-42889 |
| Debian 13 | commons-text | Fixed | 1.10.0-1 | DEBIAN-CVE-2022-42889 |
| Debian 12 | commons-text | Fixed | 1.10.0-1 | DEBIAN-CVE-2022-42889 |
| Maven library | com.guicedee.services:commons-text | Fix pending | GHSA-599f-7c49-w659 | |
| Maven library | org.apache.commons:commons-text | Fixed | 1.10.0 | GHSA-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.
- Apache Software Foundation Apache Commons Text: affected: unspecified to 1.9, 1.5 to before Apache Commons Text*
Workaround: Upgrade to Apache Commons Text 1.10.0.
Vendor advisories:
- https://security.gentoo.org/glsa/202301-05 (vendor-advisory)
References
- https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om
- http://www.openwall.com/lists/oss-security/2022/10/13/4
- http://www.openwall.com/lists/oss-security/2022/10/18/1
- https://security.netapp.com/advisory/ntap-20221020-0004/
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022
- https://security.gentoo.org/glsa/202301-05
- http://seclists.org/fulldisclosure/2023/Feb/3
- http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html
- http://packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.html
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.