Skip to main content
Public proof of conceptFix available

CVE-2025-48924

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

A public proof of concept exists; no exploitation attested.

  • Published2025-07-11
  • WeaknessCWE-674

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-07-1115:15CVE publishedNVD

Versions per branch

OSV · NVD
commons-lang
BranchAffectedFixed in
2.x≥ 2.0, ≤ 2.6no fix published
Apache commons lang
BranchAffectedFixed in
3.x≥ 3.0, < 3.18.03.18.0
2.x≥ 2.0, < 2.62.6

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache Commons Langother versions: unknown

    package commons-lang:commons-langhttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 2.0, ≤ 2.6no fix statedmaven
  • Apache Software Foundation Apache Commons Langother versions: not affected

    package org.apache.commons:commons-lang3https://repo.maven.apache.org/maven2

    Affected
    • ≥ 3.0, < 3.18.0fixed in 3.18.0maven

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-07-11

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • airbyte-serverMinimOSall versions · fixed in 2.2.0-r0
  • airflow-3Wolfiall versions · fixed in 3.2.0-r0
  • airflow-3Chainguardall versions · fixed in 3.2.0-r0
  • akhqWolfiall versions · fixed in 0.26.0-r0
  • akhqChainguardall versions · fixed in 0.26.0-r0
  • apache-activemq-artemisWolfiall versions · fixed in 2.42.0-r1and 1 other package
  • apache-activemq-artemisChainguardall versions · fixed in 2.42.0-r1and 1 other package
  • apache-commons-cliSUSE:Linux Enterprise Server for SAP applications 16.0all versions · fixed in 1.11.0-160000.1.1

398 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-48924 Red Hat Product Security5 products fixed · 454 known affected

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

    commons-lang as a component of Cryostat 4 · commons-lang3 as a component of Cryostat 4 · commons-lang as a component of Logging Subsystem for Red Hat OpenShift · +451 more

  • RHSA-2025:23417 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Streams for Apache Kafka 3.1.0 release and security update

  • RHSA-2025:23143 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Build of Apache Camel 4.14.2 for Spring Boot release.

  • RHSA-2025:16407 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Streams for Apache Kafka 3.0.1 release and security update

  • RHSA-2025:15697 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Streams for Apache Kafka 2.9.2 release and security update

  • RHSA-2025:12511 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Streams for Apache Kafka 3.0.0 release and security update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2025:23417 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  2. Workaround from the vendor Red Hat Product Security RHSA-2025:23417 · 1 productMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  3. No fix available, says the vendor Red Hat Product Security CVE-2025-48924 · 454 productsFix deferred

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
2025-07-11
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-j288-q9x7-2f5v

Frequently asked questions

What is CVE-2025-48924?

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.

Is CVE-2025-48924 actively exploited?

Active exploitation of CVE-2025-48924 has not been confirmed. Its EPSS score was 2.6% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-48924?

CVE-2025-48924 has a CVSS v3 base score of 5.3 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.

Running commons-lang? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record