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

> Attackers can cause application crashes via StackOverflowError by providing very long inputs to ClassUtils.getClass in Apache Commons Lang.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 11 Jul 2025
- **Updated:** 4 Nov 2025
- **Also known as:** AZL-65144, AZL-65181, CLEANSTART-2026-CK84592, CLEANSTART-2026-CR94528, CLEANSTART-2026-EA81114, CLEANSTART-2026-IF64131, CLEANSTART-2026-WE03470, CLEANSTART-2026-WV95785, CLSA-2025-1759709172, CLSA-2025-1759709173, CLSA-2025-1759709174, CLSA-2025-1759795575, CLSA-2025-1759795576, CLSA-2025-1764547658, CLSA-2026-1770595751, CLSA-2026-1776040403, CLSA-2026-1783991066, CLSA-2026-1788757927, CLSA-2026-1789448501, CLSA-2026-1793128436, DEBIAN-CVE-2025-48924, DLA-4262-1, DLA-4286-1, ECHO-4c54-3bba-f75d, GHSA-j288-q9x7-2f5v, MGASA-2025-0293, MINI-25vg-2v5f-2qmh, MINI-2jx6-jghf-fhm4, MINI-399g-8h84-376g, MINI-3chw-x6r6-8gr3, MINI-3q7f-wjx3-6j2w, MINI-49vj-h987-262h, MINI-4cwm-p6m9-9jf2, MINI-4qg2-87fr-4p2p, MINI-5p48-27q3-2grm, MINI-62gp-cq5h-q496, MINI-6m9r-6jf8-68xg, MINI-6pr3-48hh-ccv7, MINI-6r9f-r9j7-w78m, MINI-6vqg-55v9-p84j, MINI-6xcf-6qg8-rpcv, MINI-72x8-59f6-93q6, MINI-77wp-8p4r-q4x9, MINI-8535-hcwc-rxcg, MINI-88xp-3qhx-764f, MINI-8r82-8hqf-rhg6, MINI-8rh6-fmff-8rqw, MINI-8x9v-rj2g-39h9, MINI-8xmq-ggh2-x8m4, MINI-94m2-8wvh-ww4p, MINI-9fg7-45wp-x895, MINI-9mv3-2vcp-4q3w, MINI-9qx2-jmj9-mrmf, MINI-9wpp-9hxr-mq98, MINI-c3pw-cfjp-rp72, MINI-c485-4x47-vfjw, MINI-c4p5-q63x-jq26, MINI-c7m8-ggg3-2j6p, MINI-ff62-f9qh-mwgf, MINI-fgp6-3w6x-6qwf, MINI-fppq-8jvg-4h2j, MINI-fpx6-f5f7-476m, MINI-g3cf-pq3f-7xpc, MINI-g968-h5vf-w82f, MINI-gwp5-7cf7-9h5x, MINI-h82j-c7pr-h6pq, MINI-hj47-wh25-mq8w, MINI-hx68-558v-gmjp, MINI-j4wv-2r6c-59xp, MINI-jcv4-rjr4-6h38, MINI-m3fw-7cxp-f73m, MINI-mf82-qh9h-f24v, MINI-pcxr-xff6-vr5w, MINI-pgcj-w463-xqj2, MINI-pj63-qmxr-c8h9, MINI-ppjf-7c5j-j5qr, MINI-pvjr-w75x-gcc5, MINI-r96g-g2p5-v6x7, MINI-rfrj-jm49-x2jm, MINI-rr35-j87x-jv38, MINI-v24p-hc74-q5w5, MINI-v2rq-pxgr-463f, MINI-v4c4-f2cr-x52x, MINI-v5vj-34qf-mhgp, MINI-v7rr-4m4x-h7w5, MINI-vj82-xpr3-5v6g, MINI-vm8q-9rgm-h6x8, MINI-w7cm-2wjh-q838, MINI-w9ch-6rqp-h7fg, MINI-wvf9-q67f-9mhc, MINI-x3j7-8gmh-c6pj, MINI-x4vv-rpwj-28f4, MINI-x68q-r73r-r8gg, MINI-x9fc-c5p8-vw58, MINI-xg3c-32xm-hjvr, MINI-xhwj-rx75-w3f8, MINI-xvhg-2h9c-82qm, OESA-2025-1929, OESA-2025-1971, OESA-2025-1972, OESA-2025-2030, OESA-2025-2031, OESA-2025-2032, OESA-2025-2061, RHLW-2026-5049b13f770fee17, ROOT-APP-MAVEN-CVE-2025-48924, SUSE-SU-2025:02785-1, SUSE-SU-2025:02786-1, SUSE-SU-2025:02818-1, SUSE-SU-2026:3390-1, UBUNTU-CVE-2025-48924, USN-8364-1, openSUSE-SU-2025:15347-1

## What is CVE-2025-48924?

CVE-2025-48924 is a medium-severity denial of service vulnerability in Apache Commons Lang, published on 11 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-674 (Uncontrolled Recursion)

## Which versions are affected by CVE-2025-48924?

4 open source packages ship an affected version, including org.apache.commons:commons-lang3 and commons-lang:commons-lang. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.commons:commons-lang3` | Maven | From 3.0 | 3.18.0 |
| `org.apache.commons:commons-lang3` | Maven | From 3.0 | 3.18.0 |
| `commons-lang:commons-lang` | Maven | From 2.0 to 2.6 | None |
| `commons-lang:commons-lang` | Maven | From 2.0 to 2.6 | None |
| `apache-commons-compress` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.28.0-150200.3.21.1 |
| `apache-commons-lang3` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 3.20.0-150200.3.15.2 |
| `beust-jcommander` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.83-150200.3.15.1 |
| `google-guice` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 6.0.0-150200.3.13.2 |
| `guava` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 33.2.1-150200.3.15.1 |
| `jansi` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 2.4.0-150200.3.9.1 |
| `maven` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 3.9.16-150200.4.33.1 |
| `maven-resolver` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.9.27-150200.3.29.1 |
| `plexus-interpolation` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.27.0-150200.3.9.1 |
| `plexus-xml` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 3.0.1-150200.5.10.1 |
| `xmvn` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 4.3.0-150200.3.30.1 |
| `xmvn-connector` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 4.3.0-150200.3.30.1 |
| `xmvn-mojo` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 4.3.0-150200.3.30.1 |
| `xmvn-tools` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 4.3.0-150200.3.30.1 |
| `apache-commons-compress` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.28.0-150200.3.21.1 |
| `apache-commons-lang3` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 3.20.0-150200.3.15.2 |
| `beust-jcommander` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.83-150200.3.15.1 |
| `google-guice` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 6.0.0-150200.3.13.2 |
| `guava` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 33.2.1-150200.3.15.1 |
| `jansi` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 2.4.0-150200.3.9.1 |
| `maven` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 3.9.16-150200.4.33.1 |
| `maven-resolver` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.9.27-150200.3.29.1 |
| `plexus-interpolation` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.27.0-150200.3.9.1 |
| `plexus-xml` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 3.0.1-150200.5.10.1 |
| `xmvn` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 4.3.0-150200.3.30.1 |
| `xmvn-connector` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 4.3.0-150200.3.30.1 |
| `xmvn-mojo` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 4.3.0-150200.3.30.1 |
| `xmvn-tools` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 4.3.0-150200.3.30.1 |
| `apache-commons-compress` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 1.28.0-150200.3.21.1 |
| `apache-commons-lang3` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 3.20.0-150200.3.15.2 |
| `beust-jcommander` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 1.83-150200.3.15.1 |
| `google-guice` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 6.0.0-150200.3.13.2 |
| `guava` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 33.2.1-150200.3.15.1 |
| `jansi` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 2.4.0-150200.3.9.1 |
| `maven` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 3.9.16-150200.4.33.1 |
| `maven-resolver` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 1.9.27-150200.3.29.1 |

Products: Apache Commons Lang.

## How do I fix CVE-2025-48924?

Upgrade org.apache.commons:commons-lang3 to 3.18.0 or later.

## Is CVE-2025-48924 being exploited?

There is no known exploitation of CVE-2025-48924 in the wild and no public exploit code.

Public exploit code:

- Apache's commons-lang2 v2.6 with a backported fix for CVE-2025-48924 (github_poc): https://github.com/njawalkar/apache-commons-lang2

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-48924 and fix it if it is affected.

What it is: CVE-2025-48924 is a medium-severity denial of service vulnerability in Apache Commons Lang, published on 11 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-48924 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.apache.commons:commons-lang3 (Maven): affected from 3.0; fixed in 3.18.0
- org.apache.commons:commons-lang3 (Maven): affected from 3.0; fixed in 3.18.0
- commons-lang:commons-lang (Maven): affected from 2.0 up to 2.6; no fix listed
- commons-lang:commons-lang (Maven): affected from 2.0 up to 2.6; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-48924/ (Markdown: https://insights.sbomify.com/CVE-2025-48924/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-48924
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-48924
- OSV: https://osv.dev/vulnerability/CVE-2025-48924

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-48924/
Summaries are generated and may contain mistakes; the official description above is the record.
