Apache Commons Lang is vulnerable to Uncontrolled Recursion when processing long inputs
Moderate severity
GitHub Reviewed
Published
Jul 11, 2025
to the GitHub Advisory Database
•
Updated Jul 12, 2025
Description
Published by the National Vulnerability Database
Jul 11, 2025
Published to the GitHub Advisory Database
Jul 11, 2025
Reviewed
Jul 12, 2025
Last updated
Jul 12, 2025
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.
References