CVE-2020-1953 is a critical-severity (CVSS 10) vulnerability in org.apache.commons:commons-configuration2. A fix is available for org.apache.commons:commons-configuration2 — see the affected versions and patch details below.
Remote code execution in Apache Commons Configuration
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.apache.commons:commons-configuration2Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Apache Commons Configuration uses a third-party library to parse YAML files which by default allows the instantiation of classes if the YAML includes special statements. Apache Commons Configuration versions 2.2, 2.3, 2.4, 2.5, 2.6 did not change the default settings of this library. So if a YAML file was loaded from an untrusted source, it could therefore load and execute code out of the control of the host application.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.commons:commons-configuration2 | ≥ 2.2&&< 2.7 | 2.7org.apache.commons:commons-configuration2:2.7 |
Affected Products
commons configurationapachedatabase serveroraclehealthcare foundationoracleDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.commons:commons-configuration2, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.commons:commons-configuration2 to 2.7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-1953 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Several packages are unaffected because they do not include support for YAML configurations: * `apache-commons-configuration` as shipped with Red Hat Enterprise Linux 7 * `apache-commons-configuration` as shipped with Red Hat Enterprise Virtualization * `rh-maven35-apache-commons-configuration` as shipped with Red Hat…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat AMQ | commons-configuration2 | RHSA-2020:3133 |
| Red Hat AMQ | commons-configuration2 | RHSA-2020:2751 |
| Red Hat Fuse 7.7.0 | commons-configuration2 | RHSA-2020:3192 |
Frequently Asked Questions
Is CVE-2020-1953 in your dependencies?
Find it across Maven, including transitive dependencies.