VDB
Sign up
MEDIUM6.5

GHSA-j288-q9x7-2f5v

Apache Commons Lang is vulnerable to Uncontrolled Recursion when processing long inputs

Quick fix

GHSA-j288-q9x7-2f5v — org.apache.commons:commons-lang3: upgrade to the fixed version with the command below.

# pom.xml: bump <version>3.18.0</version> for org.apache.commons:commons-lang3

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.commons:commons-lang3
Introduced in: 3.0Fixed in: 3.18.0
Fix# pom.xml: bump <version>3.18.0</version> for org.apache.commons:commons-lang3
Maven/commons-lang:commons-lang
Introduced in: 2.0

No fixed version published yet for commons-lang:commons-lang (maven). Pin to a known-safe version or switch to an alternative.

References