CVE-2025-48924: Apache Commons Lang, Apache Commons Lang: ClassUtils.getClass(...) can throw a StackOverflowError on very long inputs

"Gary D. Gregory" <[email protected]> Fri, 11 Jul 2025 14:25:52 +0000
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <[email protected]>
Severity: low=20

Affected versions:

- Apache Commons Lang (commons-lang:commons-lang) 2.0 through 2.6
- Apache Commons Lang (org.apache.commons:commons-lang3) 3.0 before 3.18.0

Description:

Uncontrolled Recursion vulnerability in Apache Commons Lang.

This issue affects Apache Commons Lang: Starting with=C2=A0commons-lang:com=
mons-lang=C2=A02.0 to 2.6, and, from org.apache.commons:commons-lang3 3.0 =
before=C2=A03.18.0.

The methods ClassUtils.getClass(...) can throw=C2=A0StackOverflowError on =
very long inputs. Because an Error is usually not handled by applications =
and libraries, a=20
StackOverflowError could=C2=A0cause an application to stop.

Users are recommended to upgrade to version 3.18.0, which fixes the issue.

Credit:

OSS-Fuzz Issue 42522972 (finder)

References:

https://commons.apache.org/
https://www.cve.org/CVERecord?id=3DCVE-2025-48924