Apache · Apache Commons Configuration · CVE-2022-33980
**Name of the Vulnerable Software and Affected Versions**
Apache Commons Configuration versions 2.4 through 2.7
**Description**
The issue is related to the variable interpolation feature in Apache Commons Configuration, which allows 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. The affected versions include default Lookup instances that could result in arbitrary code execution or contact with remote servers, specifically the "script", "dns", and "url" lookups. These lookups can execute expressions using the JVM script execution engine, resolve DNS records, and 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.
**Recommendations**
Upgrade to Apache Commons Configuration 2.8.0, which disables the problematic interpolators by default.
As a temporary workaround, consider disabling the "script", "dns", and "url" lookups to minimize the risk of exploitation.
Restrict access to untrusted configuration values to prevent potential remote code execution or unintentional contact with remote servers.