CVE-2024-29133: Apache Commons Configuration - StackOverflowError
Summary
CVE-2024-29133: This Out-of-bounds Write vulnerability in Apache Commons Configuration affects Apache Commons Configuration: from 2.0 before 2.10.1. Affects org.apache.commons:commons-configuration2 versions >= 2.0, < 2.10.1. Fixed in 2.10.1. How to fix ↓
Also tracked for
- commons-configuration2 · Debian:11
The same CVE-2024-29133 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache Commons Configuration is a Java library that provides a generic configuration interface and implementation. It allows developers to read and write configuration data from various sources. This vulnerability affects versions of Apache Commons Configuration from 2.0 to 2.10.1. The specific issue is related to a StackOverflowError that occurs when calling the 'ListDelimiterHandler.flatten(Object, int)' method with a cyclical object tree. This vulnerability can be exploited by an attacker to cause a denial of service (DoS) by crashing the application or potentially executing arbitrary code.
Vulnerability Detail
The vulnerability in Apache Commons Configuration arises from a StackOverflowError that occurs when processing a cyclical object tree in the 'ListDelimiterHandler.flatten(Object, int)' method. This can be triggered by an attacker by providing a specially crafted input. The vulnerability can lead to a denial of service (DoS) condition, causing the application to crash. In some cases, it may also be possible for an attacker to execute arbitrary code. The severity of this vulnerability is considered moderate, with a CVSS score of 6.5.
How To Fix
Latest published version: 2.15.1 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.10.1
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is necessary to upgrade to the fixed version of Apache Commons Configuration to mitigate the risk.
Conclusion
The vulnerability in Apache Commons Configuration can be mitigated by upgrading to version 2.10.1 or later. It is important for developers to promptly update their project's dependencies to ensure the security and stability of their applications. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.commons:commons-configuration2 →
FAQ
Apache Commons Configuration is a Java library that provides a generic configuration interface and implementation.
The vulnerability can lead to a denial of service (DoS) condition, causing the application to crash. In some cases, it may also be possible for an attacker to execute arbitrary code.
To fix this vulnerability, it is recommended to upgrade to Apache Commons Configuration version 2.10.1 or later.
There is no known workaround for this vulnerability. It is necessary to upgrade to the fixed version of Apache Commons Configuration to mitigate the risk.
The severity of this vulnerability is considered moderate, with a CVSS score of 6.5.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.commons:commons-configuration2.