StackOverflow via Uncontrolled Recursion in Apache Commons Lang < 3.18.0
CVE-2025-48924 Published on July 11, 2025
Apache Commons Lang, Apache Commons Lang: ClassUtils.getClass(...) can throw a StackOverflowError on very long inputs
Uncontrolled Recursion vulnerability in Apache Commons Lang.
This issue affects Apache Commons Lang: Starting with commons-lang:commons-lang 2.0 to 2.6, and, from org.apache.commons:commons-lang3 3.0 before 3.18.0.
The methods ClassUtils.getClass(...) can throw StackOverflowError on very long inputs. Because an Error is usually not handled by applications and libraries, a
StackOverflowError could cause an application to stop.
Users are recommended to upgrade to version 3.18.0, which fixes the issue.
Vulnerability Analysis
CVE-2025-48924 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.
Weakness Type
What is a Stack Exhaustion Vulnerability?
The product does not properly control the amount of recursion which takes place, consuming excessive resources, such as allocated memory or the program stack.
CVE-2025-48924 has been classified to as a Stack Exhaustion vulnerability or weakness.
Products Associated with CVE-2025-48924
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-48924 are published in these products:
Affected Versions
Apache Software Foundation Apache Commons Lang:- Version 2.0, <= 2.6 is affected.
- Version 3.0 and below 3.18.0 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.