p PatchFirst

CVE-2025-48924

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

CVSS 5.3 · Medium · EPSS 2.6% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libcommons-lang-java"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • SUSE-SU-2026:3390-1 · SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Module for Basesystem 15 SP7, SUSE Linux Enterprise Module for Development Tools 15 SP7, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
  • USN-8364-1 · Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu Pro 14.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS, Ubuntu Pro 24.04 LTS ·
  • SUSE-SU-2026:21996-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
  • openSUSE-SU-2026:10784-1 · openSUSE Tumbleweed ·
  • DLA-4286-1 · Debian 11 ·
  • SUSE-SU-2025:02818-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Basesystem 15 SP6, SUSE Linux Enterprise Module for Basesystem 15 SP7, SUSE Manager Server Module 4.3 ·
  • SUSE-SU-2025:02786-1 · SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
  • SUSE-SU-2025:02785-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Basesystem 15 SP6, SUSE Linux Enterprise Module for Basesystem 15 SP7 ·
  • DLA-4262-1 · Debian 11 ·
  • openSUSE-SU-2025:15347-1 · openSUSE Tumbleweed ·

Stack: system

Affected products and versions

  • apache commons lang

    Versions
    • ≥ 2.0, ≤ 2.6: Affected (maven)

    No fix published

  • apache commons lang

    Versions
    • ≥ 3.0, < 3.18.0: Affected (maven)

    Update to 3.18.0

  • libcommons-lang-java Debian 12

    Versions
    • 2.6-10
    Affected ranges
    • ECOSYSTEM: < 2.6-10+deb12u1

    Update to 2.6-10+deb12u1

  • libcommons-lang-java Debian 13

    Versions
    • 2.6-10
    Affected ranges
    • ECOSYSTEM: < 2.6-10+deb13u1

    Update to 2.6-10+deb13u1

  • libcommons-lang-java Debian 14

    Versions
    • 2.6-10
    Affected ranges
    • ECOSYSTEM: < 2.6-11

    Update to 2.6-11

  • libcommons-lang3-java Debian 12

    Versions
    • 3.12.0-2
    Affected ranges
    • ECOSYSTEM: < 3.12.0-2+deb12u1

    Update to 3.12.0-2+deb12u1

  • libcommons-lang3-java Debian 13

    Versions
    • 3.17.0-1
    Affected ranges
    • ECOSYSTEM: < 3.17.0-1+deb13u1

    Update to 3.17.0-1+deb13u1

  • libcommons-lang3-java Debian 14

    Versions
    • 3.17.0-1
    Affected ranges
    • ECOSYSTEM: < 3.17.0-2

    Update to 3.17.0-2

  • libcommons-lang-java Ubuntu Pro 14.04 LTS

    Versions
    • 2.6-3ubuntu2
    Affected ranges
    • ECOSYSTEM: < 2.6-3ubuntu2+esm1

    Update to 2.6-3ubuntu2+esm1

  • libcommons-lang3-java Ubuntu Pro 14.04 LTS

    Versions
    • 3.1-1
    • 3.1-2
    • 3.2.1-1
    Affected ranges
    • ECOSYSTEM: < 3.2.1-1ubuntu0.1~esm1

    Update to 3.2.1-1ubuntu0.1~esm1

  • libcommons-lang-java Ubuntu Pro 16.04 LTS

    Versions
    • 2.6-5ubuntu1
    • 2.6-6ubuntu1
    • 2.6-6ubuntu2
    Affected ranges
    • ECOSYSTEM: < 2.6-6ubuntu2+esm1

    Update to 2.6-6ubuntu2+esm1

  • libcommons-lang3-java Ubuntu Pro 16.04 LTS

    Versions
    • 3.4-1
    Affected ranges
    • ECOSYSTEM: < 3.4-1ubuntu0.1~esm1

    Update to 3.4-1ubuntu0.1~esm1

  • libcommons-lang-java Ubuntu Pro 18.04 LTS

    Versions
    • 2.6-6ubuntu3
    • 2.6-7
    • 2.6-8
    Affected ranges
    • ECOSYSTEM: < 2.6-8ubuntu0.1~esm1

    Update to 2.6-8ubuntu0.1~esm1

  • libcommons-lang3-java Ubuntu Pro 18.04 LTS

    Versions
    • 3.5-1
    • 3.5-2ubuntu1
    • 3.8-1~18.04.2
    Affected ranges
    • ECOSYSTEM: < 3.8-1~18.04.2+esm1

    Update to 3.8-1~18.04.2+esm1

  • libcommons-lang-java Ubuntu Pro 20.04 LTS

    Versions
    • 2.6-8
    • 2.6-9
    Affected ranges
    • ECOSYSTEM: < 2.6-9ubuntu0.20.04.1~esm1

    Update to 2.6-9ubuntu0.20.04.1~esm1

  • libcommons-lang3-java Ubuntu Pro 20.04 LTS

    Versions
    • 3.8-2
    Affected ranges
    • ECOSYSTEM: < 3.8-2ubuntu0.1~esm1

    Update to 3.8-2ubuntu0.1~esm1

  • libcommons-lang-java Ubuntu 22.04 LTS

    Versions
    • 2.6-9
    Affected ranges
    • ECOSYSTEM: < 2.6-9ubuntu0.22.04.1

    Update to 2.6-9ubuntu0.22.04.1

  • libcommons-lang3-java Ubuntu 22.04 LTS

    Versions
    • 3.11-1
    Affected ranges
    • ECOSYSTEM: < 3.11-1ubuntu0.1

    Update to 3.11-1ubuntu0.1

  • libcommons-lang-java Ubuntu 24.04 LTS

    Versions
    • 2.6-10
    Affected ranges
    • ECOSYSTEM: < 2.6-10ubuntu0.1

    Update to 2.6-10ubuntu0.1

  • libcommons-lang3-java Ubuntu Pro 24.04 LTS

    Versions
    • 3.12.0-2
    • 3.13.0-1
    • 3.14.0-1
    Affected ranges
    • ECOSYSTEM: < 3.14.0-1ubuntu0.1~esm1

    Update to 3.14.0-1ubuntu0.1~esm1

  • libcommons-lang3-java Ubuntu 25.10

    Versions
    • 3.17.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →