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

Published Jul 11, 2025
·
Updated

Last updated 18 January 2026

Other sources

Uncontrolled Recursion vulnerability in Apache Commons Lang.

Launchpad

Affected Software

9 affected componentsFixes available
Apache Commons Lang>=2.0<=2.6
Apache Commons Lang 3<3.18.0
maven/commons-lang:commons-lang>=2.0<=2.6
maven/org.apache.commons:commons-lang3>=3.0<3.18.0
3.18.0
Apache Commons Lang>=2.0<2.6
Apache Commons Lang>=3.0<3.18.0
debian/libcommons-lang-java<=2.6-9
2.6-9+deb11u22.6-10+deb12u12.6-10+deb13u12.6-12
debian/libcommons-lang3-java<=3.11-1
3.11-1+deb11u23.12.0-2+deb12u13.17.0-1+deb13u13.20.0-1
IBM watsonx.data intelligence<=5.2.0, 5.2.1, 5.2.2, 5.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.commons:commons-lang3 to a version that resolves this vulnerability.

    Fixed in 3.18.0
  2. Upgrade

    Upgrade debian/libcommons-lang-java to a version that resolves this vulnerability.

    Fixed in 2.6-9+deb11u2Fixed in 2.6-10+deb12u1Fixed in 2.6-10+deb13u1Fixed in 2.6-12
  3. Upgrade

    Upgrade debian/libcommons-lang3-java to a version that resolves this vulnerability.

    Fixed in 3.11-1+deb11u2Fixed in 3.12.0-2+deb12u1Fixed in 3.17.0-1+deb13u1Fixed in 3.20.0-1
  4. Upgrade

    Upgrade org.apache.commons:commons-lang3 to a version that resolves this vulnerability.

    Fixed in 3.18.0
  5. Upgrade

    Upgrade commons-lang:commons-lang to a version that resolves this vulnerability.

    Fixed in 3.18.0

Event History

Jul 11, 2025
CVE Published
via MITRE·02:56 PM
Data Sourced
via MITRE·02:56 PM
DescriptionWeakness
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:31 PM
Data Sourced
via GitHub·03:31 PM
DescriptionSeverityWeaknessAffected Software
Jun 2, 2026
Data Sourced
via Ubuntu·03:36 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·03:37 PM
DescriptionAffected Software
Data Sourced
via Launchpad·03:37 PM
Description
Jun 24, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-48924?

CVE-2025-48924 has a high severity due to its potential to cause a StackOverflowError through uncontrolled recursion.

2

How do I fix CVE-2025-48924?

To fix CVE-2025-48924, upgrade to Apache Commons Lang version 3.18.0 or later.

3

Which versions are affected by CVE-2025-48924?

CVE-2025-48924 affects Apache Commons Lang versions 2.0 to 2.6 and Commons Lang 3 up to but not including 3.18.0.

4

What is the impact of CVE-2025-48924 on applications?

The impact of CVE-2025-48924 on applications can result in application crashes due to StackOverflowError.

5

Is there a workaround for CVE-2025-48924 before applying a fix?

There is no official known workaround for CVE-2025-48924, so upgrading is the recommended approach.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203