CVEfocus › CVE database › CVE-2022-33980

CVE-2022-33980Apache Commons Configuration insecure interpolation defaults

CVSS 9.8 CriticalEPSS 25.0% (higher than 98% of CVEs)Published 2022-07-06Updated 2024-08-03Assigner: apache

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.

What to do

Likely to be exploited: EPSS gives a 25% 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.

Ubuntu has 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

4Fixed
3Fix pending
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04commons-configuration2Not affected
vulnerable_code_not_present
Ubuntu 25.10commons-configuration2Not affected
vulnerable_code_not_present
Ubuntu 24.04commons-configuration2Not affected
vulnerable_code_not_present
Ubuntu 22.04commons-configuration2Fix pending2.7-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-33980
Ubuntu 20.04commons-configuration2Fix pending
Ubuntu 18.04commons-configuration2Fix pending
Debian 14commons-configuration2Fixed2.8.0-1DEBIAN-CVE-2022-33980
Debian 13commons-configuration2Fixed2.8.0-1DEBIAN-CVE-2022-33980
Debian 12commons-configuration2Fixed2.8.0-1DEBIAN-CVE-2022-33980
Maven libraryorg.apache.commons:commons-configuration2Fixed2.8.0GHSA-xj57-8qj4-c4m6

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.

Workaround: Upgrade to version Apache Commons Configuration 2.8.0

Vendor advisories:

References

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.