{"id":"CVE-2022-33980","published":"2022-07-06T00:00:00Z","modified":"2024-08-03T08:16:16Z","title":"Apache Commons Configuration insecure interpolation defaults","vendor":"Apache","product":"Apache Commons Configuration","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.44644,"percentile":0.988,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.apache.org/thread/tdf5n7j80lfxdhs2764vn0xmpfodm87s","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2022/07/06/5","tags":["mailing-list"]},{"url":"https://security.netapp.com/advisory/ntap-20221028-0015/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/15/4","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2022/dsa-5290","tags":["vendor-advisory"]}],"priority":{"score":24.8,"factors":[{"name":"EPSS percentile","points":19.76},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":4,"skipped":1,"earliest":"2022-07-08","earliestUrl":"https://github.com/tangxiaofeng7/CVE-2022-33980-Apache-Commons-Configuration-RCE","repos":[{"name":"tangxiaofeng7/CVE-2022-33980-Apache-Commons-Configuration-RCE","url":"https://github.com/tangxiaofeng7/CVE-2022-33980-Apache-Commons-Configuration-RCE","stars":43,"created":"2022-07-08"},{"name":"HKirito/CVE-2022-33980","url":"https://github.com/HKirito/CVE-2022-33980","stars":30,"created":"2022-08-10"},{"name":"sammwyy/CVE-2022-33980-POC","url":"https://github.com/sammwyy/CVE-2022-33980-POC","stars":5,"created":"2022-10-17"},{"name":"joseluisinigo/riskootext4shell","url":"https://github.com/joseluisinigo/riskootext4shell","stars":1,"created":"2023-07-18"}]},"first":{"date":"2022-07-08","source":"PoC-in-GitHub","url":"https://github.com/tangxiaofeng7/CVE-2022-33980-Apache-Commons-Configuration-RCE"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Commons Configuration","versions":[">= Apache Commons Configuration, < 2.8.0"]}],"workarounds":{"items":["Upgrade to version Apache Commons Configuration 2.8.0"],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.commons:commons-configuration2","vulnerableRanges":[">=2.4, <2.8.0"],"patched":["2.8.0"],"from":["GHSA-xj57-8qj4-c4m6"],"provenance":"source"}],"summary":{"text":"Apache Commons Configuration, versions 2.4 through 2.7, has insecure default variable interpolation lookups, namely \"script\", \"dns\", and \"url\", which are enabled out of the box. An attacker who can supply untrusted configuration values to an application using these defaults can cause arbitrary code execution through the script lookup or trigger unintended contact with remote servers via the dns and url lookups.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:41Z"},"euvd":{"id":"EUVD-2022-6450","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-1953","published":"2020-03-13","fixed":"2.7","kev":false},{"cve":"CVE-2022-33980","published":"2022-07-06","fixed":"2.8.0","kev":false},{"cve":"CVE-2024-29131","published":"2024-03-21","fixed":"2.10.1","kev":false,"link":{"from":"CVE-2022-33980","to":"CVE-2024-29131","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.commons:commons-configuration2","fromFixed":"2.8.0","toFixed":"2.10.1","daysApart":624}]}},{"cve":"CVE-2024-29133","published":"2024-03-21","fixed":"2.10.1","kev":false,"link":{"from":"CVE-2022-33980","to":"CVE-2024-29133","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.commons:commons-configuration2","fromFixed":"2.8.0","toFixed":"2.10.1","daysApart":624}]}},{"cve":"CVE-2026-45205","published":"2026-05-14","fixed":"2.15.0","kev":false}],"package":"Maven:org.apache.commons:commons-configuration2"}}