CVE-2025-48924

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

Published Jul 11, 2025 CVSS 3.1 · 5.3 Medium EPSS 2.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4262-1 libcommons-lang-java security update
Debian DLA Debian DLA DLA-4286-1 libcommons-lang3-java security update
Debian DLA Debian DLA DLA-4262-2 libcommons-lang-java regression update
Debian DLA Debian DLA DLA-4286-2 libcommons-lang3-java regression update
EUVD EUVD EUVD-2025-21159 Apache Commons Lang is vulnerable to Uncontrolled Recursion when processing long inputs
Github GHSA Github GHSA GHSA-j288-q9x7-2f5v Apache Commons Lang is vulnerable to Uncontrolled Recursion when processing long inputs
Ubuntu USN Ubuntu USN USN-8364-1 Apache Commons Lang vulnerability
History
Type Values Removed Values Added
First Time appeared Apache
Apache commons Lang
CPEs cpe:2.3:a:apache:commons_lang:*:*:*:*:*:*:*:*
Vendors & Products Apache
Apache commons Lang
Type Values Removed Values Added
Metrics epss

{'score': 0.00028}

epss

{'score': 0.00039}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics epss

{'score': 0.00028}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Apache Commons Lang, Apache Commons Lang: ClassUtils.getClass(...) can throw a StackOverflowError on very long inputs
Weaknesses CWE-674
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 4, 2025, 10:06 PM
Reserved
May 28, 2025, 3:06 PM
Status
Modified
Published
Jul 11, 2025, 3:15 PM
Modified
Jun 17, 2026, 9:30 AM
Severity
Low
Public date
Jul 11, 2025, 2:56 PM