CVE-2026-41711: Spring Data Commons Denial of Service Vulnerability Due to StackOverflowException

Summary

10/06/2026
Yes i
Moderate
5.9

CVE-2026-41711: Spring Data Commons: StackOverflowException when parsing Sort parameters (DoS). Affects org.springframework.data:spring-data-commons across 5 version ranges.

< 2.7.19 >= 3.0.0, <= 3.3.16 >= 3.4.0, <= 3.4.14 >= 3.5.0, < 3.5.12 >= 4.0.0, < 4.0.6

Fixed in 2.7.19, 3.5.12 or 4.0.6, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Spring Data Commons is a key component of the Spring Framework, providing a consistent data access strategy across various data stores. It simplifies database interactions and enhances productivity by offering a set of abstractions and utilities. However, certain versions of Spring Data Commons are vulnerable to a Denial of Service (DoS) attack, which can lead to application downtime and degraded performance.

Vulnerability Detail

The vulnerability arises from the way Spring Data Commons parses Sort parameters. When malformed or excessively nested Sort parameters are provided, the application may enter a recursive loop, leading to a StackOverflowException. This can cause the application to crash or become unresponsive, effectively denying service to legitimate users. The affected versions include Spring Data Commons 4.0.0 through 4.0.5, 3.5.0 through 3.5.11, and several others down to 2.7.19.

How To Fix

Latest published version: 4.2.0-RC1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.7.19 2.7.19
  • >= 3.5.0, < 3.5.12 3.5.12
  • >= 4.0.0, < 4.0.6 4.0.6

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, you can implement input validation to restrict the complexity of Sort parameters being processed by your application. This can help mitigate the risk of triggering the StackOverflowException until you can apply the patch.

Conclusion

In summary, the CVE-2026-41711 vulnerability in Spring Data Commons poses a significant risk of Denial of Service due to a StackOverflowException when parsing Sort parameters. It is crucial to update to the patched versions to safeguard your applications and ensure continued service availability.

See every vulnerability recorded for org.springframework.data:spring-data-commons →

Share this vulnerability

FAQ

A Denial of Service (DoS) attack is an attempt to make a machine or network resource unavailable to its intended users, often by overwhelming it with traffic or exploiting vulnerabilities.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.

If left unaddressed, this vulnerability can lead to application crashes, downtime, and a poor user experience, potentially impacting your business operations.

Yes, versions 4.0.6 and later for 4.x, and 3.5.12 and later for 3.5 are safe and include the necessary fixes for this vulnerability.

The CVSS score for this vulnerability is 5.9, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for org.springframework.data:spring-data-commons.

How To Fix

Latest published version: 4.2.0-RC1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.7.19 2.7.19
  • >= 3.5.0, < 3.5.12 3.5.12
  • >= 4.0.0, < 4.0.6 4.0.6

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback