CVE-2022-33980: Apache commons_text(CVE-2022-42889) and commons_configuration (CVE-2022-33980) vulnerability
A flaw was found in Apache Commons Configuration's variable interpolation, which by default included several lookup actions that could permit script invocation on remote servers. This issue could allow an attacker to use one of these actions to send a request to execute arbitrary code on the server.
Other sources
Apache Commons Configuration 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.configuration2.interpol.Lookup that performs the interpolation. Starting with version 2.4 and continuing through 2.7, 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 Configuration 2.8.0, which disables the problematic interpolators by default.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/candlepinto a version that resolves this vulnerability.Fixed in 0:4.2.13-1.el8 - Upgrade
Upgrade
debian/commons-configuration2to a version that resolves this vulnerability.Fixed in 2.2-1+deb10u1Fixed in 2.8.0-1~deb11u1Fixed in 2.8.0-2 - Upgrade
Upgrade
redhat/commons-configurationto a version that resolves this vulnerability.Fixed in 2.8.0 - Upgrade
Upgrade
Apache Commons Configurationto a version that resolves this vulnerability.Fixed in 2.8.0 - Upgrade
Upgrade
Apache Commons Textto a version that resolves this vulnerability.Fixed in 1.10.0
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2022-33980.
What is the severity of CVE-2022-33980?
The severity of CVE-2022-33980 is critical with a severity score of 9.8.
What software is affected by CVE-2022-33980?
Apache Commons Configuration 2.8.0, Candlepin 0:4.2.13-1.el8, and certain versions of Debian Commons Configuration 2 are affected by CVE-2022-33980.
What is the remediation for CVE-2022-33980?
Apply the latest security patches provided by the respective vendors to upgrade Apache Commons Configuration, Candlepin, or Debian Commons Configuration to the fixed versions.
Where can I find more information about CVE-2022-33980?
You can find more information about CVE-2022-33980 in the references provided: [Apache mailing list](https://lists.apache.org/thread/tdf5n7j80lfxdhs2764vn0xmpfodm87s), [Red Hat Security Advisory RHSA-2022:6916](https://access.redhat.com/errata/RHSA-2022:6916), [Red Hat Security Advisory RHSA-2022:8652](https://access.redhat.com/errata/RHSA-2022:8652).