Uncontrolled Recursion Vulnerability in Apache Commons Lang Affecting Multiple Versions
CVE-2025-48924
6.5MEDIUM
What is CVE-2025-48924?
A vulnerability exists in Apache Commons Lang that leads to uncontrolled recursion, specifically within the ClassUtils.getClass(...) method. This flaw affects versions 2.0 to 2.6 of commons-lang and up to version 3.0 prior to 3.18.0 of commons-lang3. When processing excessively long input, the method can throw a StackOverflowError, which many applications may not adequately handle. This error can potentially cause application failures, thereby disrupting services. To mitigate this risk, users are strongly advised to upgrade to version 3.18.0 or later, which resolves the issue.
Affected Version(s)
Apache Commons Lang 2.0 <= 2.6
Apache Commons Lang 3.0 < 3.18.0