CVE-2025-46392: Apache Commons Configuration: Uncontrolled Resource Consumption when loading untrusted configurations in 1.x
Uncontrolled Resource Consumption vulnerability in Apache Commons Configuration 1.x.
There are a number of issues in Apache Commons Configuration 1.x that allow excessive resource consumption when loading untrusted configurations or using unexpected usage patterns. The Apache Commons Configuration team does not intend to fix these issues in 1.x. Apache Commons Configuration 1.x is still safe to use in scenario's where you only load trusted configurations.
Users that load untrusted configurations or give attackers control over usage patterns are recommended to upgrade to the 2.x version line, which fixes these issues. Apache Commons Configuration 2.x is not a drop-in replacement, but as it uses a separate Maven groupId and Java package namespace they can be loaded side-by-side, making it possible to do a gradual migration.
Other sources
Uncontrolled Resource Consumption vulnerability in Apache Commons Configuration 1.x.
There are a number of issues in Apache Commons Configuration 1.x that allow excessive resource consumption when loading untrusted configurations or using unexpected usage patterns. The Apache Commons Configuration team does not intend to fix these issues in 1.x. Apache Commons Configuration 1.x is still safe to use in scenarios where you only load trusted configurations.
Users that load untrusted configurations or give attackers control over usage patterns are recommended to upgrade to the 2.x version line, which fixes these issues. Apache Commons Configuration 2.x is not a drop-in replacement, but as it uses a separate Maven groupId and Java package namespace they can be loaded side-by-side, making it possible to do a gradual migration.
— GitHub
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-46392?
CVE-2025-46392 is categorized as a moderate severity vulnerability due to its potential for excessive resource consumption.
How do I fix CVE-2025-46392?
To fix CVE-2025-46392, update Apache Commons Configuration to the latest version that has addressed this vulnerability.
What platforms are affected by CVE-2025-46392?
CVE-2025-46392 affects all versions of Apache Commons Configuration starting from 1.0.
What causes CVE-2025-46392?
CVE-2025-46392 is caused by uncontrolled resource consumption when loading untrusted configurations or through unexpected usage patterns in Apache Commons Configuration.
Is there a workaround for CVE-2025-46392?
A potential workaround for CVE-2025-46392 is to avoid using untrusted configuration sources until the software is upgraded.