Skip to content

Update dependency org.apache.commons:commons-lang3 to v3.18.0 [SECURITY]#99

Merged
dorian-burihabwa-sonarsource merged 1 commit into
masterfrom
renovate/maven-org.apache.commons-commons-lang3-vulnerability
May 11, 2026
Merged

Update dependency org.apache.commons:commons-lang3 to v3.18.0 [SECURITY]#99
dorian-burihabwa-sonarsource merged 1 commit into
masterfrom
renovate/maven-org.apache.commons-commons-lang3-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 6, 2026

This PR contains the following updates:

Package Change Age Confidence
org.apache.commons:commons-lang3 (source) 3.12.03.18.0 age confidence
org.apache.commons:commons-lang3 (source) 3.17.03.18.0 age confidence

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

CVE-2025-48924 / GHSA-j288-q9x7-2f5v

More information

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.

Severity

  • CVSS Score: 6.5 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label May 6, 2026
@renovate renovate Bot requested a review from a team May 6, 2026 12:20
@sonar-review-alpha
Copy link
Copy Markdown

sonar-review-alpha Bot commented May 6, 2026

Summary

This PR updates Apache Commons Lang from 3.17.0 to 3.18.0 to fix CVE-2025-48924, a medium-severity uncontrolled recursion vulnerability in ClassUtils.getClass() that can cause StackOverflowError on very long inputs. The change is a single version bump in pom.xml with no application code modifications required.

What reviewers should know

Scope: This is a contained dependency update affecting only the pom.xml file. No code logic changes in this repository.

What to verify:

  • Check if your codebase uses ClassUtils.getClass() (though this update should be backward compatible)
  • Confirm that commons-lang3 3.18.0 has no breaking changes relevant to your symbolic execution implementation
  • Verify the update doesn't conflict with other dependencies

Build verification: Ensure Maven builds successfully with the new version and that any CI checks pass.


  • Generate Walkthrough
  • Generate Diagram

🗣️ Give feedback

@hashicorp-vault-sonar-prod
Copy link
Copy Markdown
Contributor

hashicorp-vault-sonar-prod Bot commented May 6, 2026

Renovate Jira issue ID: JAVASE-213

Copy link
Copy Markdown

@sonar-review-alpha sonar-review-alpha Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean security update. Both version pins are correctly bumped to 3.18.0, and the APIs this project actually uses (StringUtils, EqualsBuilder, HashCodeBuilder) are unaffected by CVE-2025-48924 — the vulnerability is in ClassUtils.getClass(), which is never imported here. One structural issue noted inline.

🗣️ Give feedback

Comment on lines +573 to +576
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
<version>3.18.0</version>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module inherits from the root BOM (via java-sesonar-java-symbolic-execution) which already manages commons-lang3. The explicit <version> here is what caused this module to drift to 3.12.0 while the BOM was already at 3.17.0, requiring Renovate to update two separate places.

Dropping the <version> tag lets the BOM control the version, while <scope>provided</scope> can stay to preserve compile-time-only behaviour:

Suggested change
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
<version>3.18.0</version>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<scope>provided</scope>
</dependency>
  • Mark as noise

@dorian-burihabwa-sonarsource dorian-burihabwa-sonarsource force-pushed the renovate/maven-org.apache.commons-commons-lang3-vulnerability branch from a5ccb5f to 4e93cb1 Compare May 11, 2026 08:35
@dorian-burihabwa-sonarsource dorian-burihabwa-sonarsource enabled auto-merge (rebase) May 11, 2026 08:35
Copy link
Copy Markdown

@sonar-review-alpha sonar-review-alpha Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prior issue flagged on java-symbolic-execution-checks-test-sources/pom.xml is still open: that module explicitly pins commons-lang3 at 3.12.0, overriding the root BOM and leaving it on a vulnerable version even after this PR. The other two consumers (java-symbolic-execution-plugin and its/ruling) correctly inherit from the BOM and will pick up 3.18.0.

🗣️ Give feedback

@sonarqube-next
Copy link
Copy Markdown

@dorian-burihabwa-sonarsource dorian-burihabwa-sonarsource merged commit b0f8bda into master May 11, 2026
8 checks passed
@dorian-burihabwa-sonarsource dorian-burihabwa-sonarsource deleted the renovate/maven-org.apache.commons-commons-lang3-vulnerability branch May 11, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant