CVE-2022-42889

NameCVE-2022-42889
DescriptionApache 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1021787

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
commons-text (PTS)bullseye1.9-1vulnerable
bookworm1.10.0-1fixed
sid, trixie1.12.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
commons-textsource(unstable)1.10.0-11021787

Notes

[bullseye] - commons-text <no-dsa> (Minor issue)
https://www.openwall.com/lists/oss-security/2022/10/13/4
https://securitylab.github.com/advisories/GHSL-2022-018_Apache_Commons_Text/
https://blogs.apache.org/security/entry/cve-2022-42889

Search for package or bug name: Reporting problems