CVE-2025-48924: Apache Commons Lang, Apache Commons Lang: ClassUtils.getClass(...) can throw a StackOverflowError on very long inputs
Last updated 18 January 2026
Other sources
Uncontrolled Recursion vulnerability in Apache Commons Lang.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.commons:commons-lang3to a version that resolves this vulnerability.Fixed in 3.18.0 - Upgrade
Upgrade
debian/libcommons-lang-javato a version that resolves this vulnerability.Fixed in 2.6-9+deb11u2Fixed in 2.6-10+deb12u1Fixed in 2.6-10+deb13u1Fixed in 2.6-12 - Upgrade
Upgrade
debian/libcommons-lang3-javato a version that resolves this vulnerability.Fixed in 3.11-1+deb11u2Fixed in 3.12.0-2+deb12u1Fixed in 3.17.0-1+deb13u1Fixed in 3.20.0-1 - Upgrade
Upgrade
org.apache.commons:commons-lang3to a version that resolves this vulnerability.Fixed in 3.18.0 - Upgrade
Upgrade
commons-lang:commons-langto a version that resolves this vulnerability.Fixed in 3.18.0
Event History
Frequently Asked Questions
What is the severity of CVE-2025-48924?
CVE-2025-48924 has a high severity due to its potential to cause a StackOverflowError through uncontrolled recursion.
How do I fix CVE-2025-48924?
To fix CVE-2025-48924, upgrade to Apache Commons Lang version 3.18.0 or later.
Which versions are affected by CVE-2025-48924?
CVE-2025-48924 affects Apache Commons Lang versions 2.0 to 2.6 and Commons Lang 3 up to but not including 3.18.0.
What is the impact of CVE-2025-48924 on applications?
The impact of CVE-2025-48924 on applications can result in application crashes due to StackOverflowError.
Is there a workaround for CVE-2025-48924 before applying a fix?
There is no official known workaround for CVE-2025-48924, so upgrading is the recommended approach.