Uncontrolled Resource Consumption in Apache Commons IO - CVE-2024-47554
Summary
DEBIAN-CVE-2024-47554: Uncontrolled Resource Consumption vulnerability in Apache Commons IO. Affects commons-io versions < 2.16.0-1. Fixed in 2.16.0-1. How to fix ↓
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 IO is a widely used library in Java that provides utility classes for input and output operations. It simplifies tasks related to file handling, stream manipulation, and data processing. The library is integral for developers who require efficient and reliable I/O operations in their applications. However, certain versions of Commons IO are vulnerable to a specific issue that can lead to excessive CPU resource consumption when processing malicious input.
Vulnerability Detail
The vulnerability identified as CVE-2024-47554 is an uncontrolled resource consumption issue found in the org.apache.commons.io.input.XmlStreamReader class of Apache Commons IO. This vulnerability allows an attacker to craft malicious input that can cause the application to consume excessive CPU resources, potentially leading to denial of service. The issue affects versions of Apache Commons IO from 2.0 up to, but not including, 2.14.0. Users of affected versions are at risk of performance degradation and application unavailability.
How To Fix
Minimum fixed version
2.16.0-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade commons-io
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate upgrading is not feasible, consider implementing input validation to filter out potentially malicious input before it reaches the XmlStreamReader class. This can help mitigate the risk of resource exhaustion.
Conclusion
CVE-2024-47554 represents a significant risk for users of Apache Commons IO versions prior to 2.14.0. It is crucial for developers to upgrade to the patched version to ensure the security and stability of their applications. Additionally, utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in real-time.
See every vulnerability recorded for commons-io →
FAQ
CVE-2024-47554 is a vulnerability in Apache Commons IO that allows for uncontrolled resource consumption, potentially leading to denial of service.
Versions from 2.0 up to, but not including, 2.14.0 are affected by this vulnerability.
You can use Vulert, which monitors open-source vulnerabilities in real-time. By uploading your manifest file, you can check for vulnerabilities without needing to access the code.
If exploited, this vulnerability can lead to excessive CPU usage, causing application slowdowns or crashes, ultimately resulting in denial of service.
Yes, implementing strict input validation can help mitigate the risk of resource exhaustion until an upgrade can be performed.
References
Related vulnerabilities
Recent vulnerabilities recorded for commons-io.