MODERATE 6.5

CVE-2025-48924

Apache Commons Lang is vulnerable to Uncontrolled Recursion when processing long inputs

Description

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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
commons-lang » commons-lang
>= 2.0, <= 2.6
-
org.apache.commons » commons-lang3
>= 3.0, < 3.18.0
3.18.0

Blast radius

2affected artifacts
96affected versions
217,551dependent artifacts (est.)
14,858,163dependent versions

87% of the dependent artifacts (189,602) still pull an affected version in their latest release.

DepthDependent versions
Direct
2,145,075
2 hops
5,605,920
3 hops
4,047,985
4 hops
1,976,021
5 hops
782,354
6 hops
300,808

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.