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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| commons-lang » commons-lang | >= 2.0, <= 2.6 | - |
| org.apache.commons » commons-lang3 | >= 3.0, < 3.18.0 | 3.18.0 |
Blast radius
87% of the dependent artifacts (189,602) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.apache.maven.plugins » maven-source-plugin87,037 usages
- org.apache.maven.plugins » maven-javadoc-plugin84,916 usages
- org.apache.maven.plugins » maven-surefire-plugin67,265 usages
- org.apache.maven.plugins » maven-jar-plugin59,787 usages
- org.apache.maven.plugins » maven-gpg-plugin50,913 usages
- org.sonatype.plugins » nexus-staging-maven-plugin36,701 usages
- org.apache.felix » maven-bundle-plugin31,882 usages
- org.apache.maven.plugins » maven-release-plugin29,114 usages
- org.apache.maven.plugins » maven-assembly-plugin28,314 usages
- org.apache.maven.plugins » maven-dependency-plugin26,231 usages
- org.apache.maven.plugins » maven-resources-plugin22,649 usages
- org.sonatype.central » central-publishing-maven-plugin22,513 usages
- org.scalatest » scalatest20,465 usages
- org.jacoco » jacoco-maven-plugin19,077 usages
- org.apache.maven.plugins » maven-shade-plugin18,801 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-48924
- Webhttps://github.com/apache/commons-lang/commit/b424803abdb2bec818e4fbcb251ce031c22aca53
- Packagehttps://github.com/apache/commons-lang
- Webhttps://lists.apache.org/thread/bgv0lpswokgol11tloxnjfzdl7yrc1g1
- Webhttps://lists.debian.org/debian-lts-announce/2025/08/msg00000.html
- Webhttps://lists.debian.org/debian-lts-announce/2025/08/msg00026.html
- Webhttps://lists.debian.org/debian-lts-announce/2025/09/msg00032.html
- Webhttps://lists.debian.org/debian-lts-announce/2025/09/msg00036.html
- Webhttp://www.openwall.com/lists/oss-security/2025/07/11/1
