SQL Injection Affecting org.springframework.data:spring-data-relational package, versions [, 3.5.12)[4.0.0-M1, 4.0.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (14th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKDATA-17307374
  • published11 Jun 2026
  • disclosed9 Jun 2026
  • creditUnknown

Introduced: 9 Jun 2026

CVE-2026-41697  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade org.springframework.data:spring-data-relational to version 3.5.12, 4.0.6 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection via Query By Example (QBE) StringMatcher handling. An attacker can perform boolean-based blind data inference by supplying wildcard characters in externally controlled input used to populate a QBE probe. When StringMatcher.STARTING, ENDING, or CONTAINING is used, insufficient escaping of wildcard characters may allow an attacker to influence query behavior and infer sensitive information from the underlying data set.

Note: This vulnerability is not exploitable by default. It requires the application to explicitly expose a QBE probe that accepts untrusted input and uses one of the affected StringMatcher modes.

CVSS Base Scores

version 4.0
version 3.1