Uncontrolled Recursion Vulnerability in Apache Commons Lang Affecting Multiple Versions
Key Information:
- Vendor
Apache
- Status
- CVE ID
- CVE ID:
- CVE-2025-48924
- Vendor
- CVE Published:
- 11 July 2025
- Fixed in
- Fixed in:
- 3.18.0
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Yes: Works over the network, no login needed
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Check today
Find out if you're affected. If you are, patch.
What to do
1Update to a fixed version
Several version ranges are affected; the full list is under Affected Version(s).
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Apache Commons Lang. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Check today"
- It can be exploited remotely without credentials.
- Its CVSS severity is medium (5.3).
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
References
More Apache Vulnerabilities
Key Exchange Vulnerability in Apache Tomcat
Improper Exception Management in Apache Tomcat Affects Multiple Versions
Deserialization Vulnerability in Apache Roller Affects Multiple Versions
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction