Skip to content
Fencer Vulns
medium 5.3

CVE-2025-48924 json

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

published 2025-07-11 15 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-21159 , GHSA-j288-q9x7-2f5v

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.6%
EPSS 2.6% chance of exploitation in 30 days, percentile 85%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.apache.commons:commons-lang3 3.18.0
  • Apache Software Foundation Apache Commons Lang 3.18.0
  • libcommons-lang-java Debian 12 2.6-10+deb12u1
  • libcommons-lang-java Debian 13 2.6-10+deb13u1
  • libcommons-lang-java Debian 14 2.6-11
  • libcommons-lang3-java Debian 12 3.12.0-2+deb12u1
  • libcommons-lang3-java Debian 13 3.17.0-1+deb13u1
  • libcommons-lang3-java Debian 14 3.17.0-2

debian advisories DEBIAN-CVE-2025-48924

  • libcommons-lang-java Ubuntu 22.04 LTS 2.6-9ubuntu0.22.04.1
  • libcommons-lang-java Ubuntu 24.04 LTS 2.6-10ubuntu0.1
  • libcommons-lang3-java Ubuntu 22.04 LTS 3.11-1ubuntu0.1
  • libcommons-lang-java Ubuntu Pro 14.04 LTS 2.6-3ubuntu2+esm1
  • libcommons-lang-java Ubuntu Pro 16.04 LTS 2.6-6ubuntu2+esm1
  • libcommons-lang-java Ubuntu Pro 18.04 LTS 2.6-8ubuntu0.1~esm1
  • libcommons-lang-java Ubuntu Pro 20.04 LTS 2.6-9ubuntu0.20.04.1~esm1
  • libcommons-lang3-java Ubuntu Pro 14.04 LTS 3.2.1-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2025-48924

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • xmvn SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 4.3.0-150200.3.30.1
  • guava SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 33.2.1-150200.3.15.1
  • jansi SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 2.4.0-150200.3.9.1
  • maven SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 3.9.16-150200.4.33.1
  • xmvn-mojo SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 4.3.0-150200.3.30.1
  • plexus-xml SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 3.0.1-150200.5.10.1
  • xmvn-tools SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 4.3.0-150200.3.30.1
  • google-guice SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 6.0.0-150200.3.13.2

suse advisories SUSE-SU-2026:3390-1SUSE-SU-2026:21996-1SUSE-SU-2025:02818-1SUSE-SU-2025:02786-1SUSE-SU-2025:02785-1

  • apache-commons-configuration2 openSUSE Tumbleweed 2.15.0-1.1
  • apache-commons-lang3 openSUSE Tumbleweed 3.18.0-1.1

opensuse advisories openSUSE-SU-2026:10784-1openSUSE-SU-2025:15347-1

  • apache-commons-lang3 CBL-Mariner 2.0, Azure Linux 3.0 3.8.1-6

azure linux advisories AZL-65144AZL-65181

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-48924 updated cvss 3.7

commons-lang/commons-lang: org.apache.commons/commons-lang3: Uncontrolled Recursion vulnerability in Apache Commons Lang

  • Red Hat Cryostat 4 commons-lang, commons-lang3 Red Hat Logging Subsystem for Red Hat OpenShift commons-lang, commons-lang3 Red Hat OpenShift Developer Tools and Services jenkins, jenkins-2-plugins Red Hat OpenShift Serverless openshift-serverless-1/kn-eventing-integrations-log-sink-rhel8, openshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel8, openshift-serverless-1/kn-eventing-integrations-aws-sns-sink-rhel8, openshift-serverless-1/kn-eventing-integrations-aws-sqs-sink-rhel8, openshift-serverless-1/kn-eventing-integrations-timer-source-rhel8, openshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel8, +3 more Red Hat OpenShift Service Mesh 3 openshift-service-mesh/istio-cni-rhel9, openshift-service-mesh/istio-pilot-rhel9, openshift-service-mesh/istio-proxyv2-rhel9, openshift-service-mesh/istio-rhel9-operator, openshift-service-mesh/istio-must-gather-rhel9, openshift-service-mesh/istio-sail-operator-bundle, +1 more Red Hat AMQ Broker 7 commons-lang, commons-lang3
    +32 more products
    Red Hat AMQ Clients commons-lang, commons-lang3 Red Hat Ansible Automation Platform 2 commons-lang, commons-lang3, python3.11-drools-jpy-jar Red Hat build of Apache Camel - HawtIO 4 commons-lang, commons-lang3 Red Hat build of Apache Camel 4 for Quarkus 3 commons-lang3 Red Hat build of Apache Camel for Spring Boot 4 commons-lang, commons-lang3 Red Hat build of Apicurio Registry 2 commons-lang, commons-lang3 Red Hat build of Apicurio Registry 3 commons-lang, commons-lang3 Red Hat build of Debezium 2 commons-lang, commons-lang3 Red Hat build of Debezium 3 commons-lang, commons-lang3 Red Hat Build of Keycloak commons-lang3 Red Hat build of OptaPlanner 8 commons-lang, commons-lang3 Red Hat build of Quarkus commons-lang3 Red Hat Certificate System 10 jss, redhat-pki Red Hat Data Grid 8 commons-lang, commons-lang3 Red Hat Enterprise Linux 6 qpid-cpp, qpid-qmf, ruby-qpid-qmf, python-qpid-qmf, qpid-cpp-client, qpid-cpp-server, +7 more Red Hat Enterprise Linux 7 slf4j, velocity, maven-jxr, maven-scm, maven-doxia, maven-wagon, +55 more Red Hat Enterprise Linux 8 jss, qdox, sisu, guava, jansi, jsoup, +120 more Red Hat Enterprise Linux 9 jmc, jss, qdox, log4j, slf4j, pki-ca, +40 more Red Hat Enterprise Linux 10 qdox, slf4j, jakarta-mail Red Hat Fuse 7 commons-lang, commons-lang3 Red Hat JBoss Enterprise Application Platform 7 commons-lang, commons-lang3 Red Hat JBoss Enterprise Application Platform 8 commons-lang, commons-lang3 Red Hat JBoss Enterprise Application Platform Expansion Pack commons-lang, commons-lang3 Red Hat JBoss Web Server 5 commons-lang, commons-lang3 Red Hat JBoss Web Server 6 commons-lang, commons-lang3 Red Hat Offline Knowledge Portal offline-knowledge-portal/rhokp-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel9, rhoai/odh-modelmesh-rhel8, rhoai/odh-modelmesh-rhel9, rhoai/odh-trustyai-service-rhel8, rhoai/odh-trustyai-service-rhel9 Red Hat OpenShift Dev Spaces devspaces/idea-rhel8, devspaces/server-rhel8, devspaces/server-rhel9, devspaces-tech-preview/idea-rhel9 Red Hat Process Automation 7 commons-lang, commons-lang3 Red Hat Satellite 6 candlepin, puppetserver, commons-lang3, candlepin-selinux Red Hat Single Sign-On 7 commons-lang, commons-lang3 Red Hat streams for Apache Kafka 2 commons-lang, commons-lang3
    affected: workaround, no fix available “Fix deferred”
  • Red Hat build of Apache Camel 4.14.2 for Spring Boot 3.5.8
    fixed: vendor fix RHSA-2025:23143
  • Red Hat Streams for Apache Kafka 2.9.2
    fixed: vendor fix RHSA-2025:15697

3 more fixed in the full advisory

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
15 mo ago

Exploit prediction

2.63% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
maven org.apache.commons:commons-lang3
>=3.0, <3.18.0
3.18.0
maven commons-lang:commons-lang
>=2.0, <=2.6
no fix listed

Affected products

  • Apache Software Foundation Apache Commons Lang

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.