Skip to main content

Spring Data Relational CVE-2026-41697

| EUVDEUVD-2026-35893 MEDIUM
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-06-10 security@vmware.com GHSA-8r2h-xh92-gq57
4.8
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify network-accessible QBE search endpoint
  2. Delivery
    Submit wildcard-injected input via StringMatcher field
  3. Exploit
    Observe boolean result (match/no-match) in HTTP response
  4. Execution
    Iteratively refine wildcard patterns
  5. Impact
    Infer sensitive column values from response differences

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

The application must use Spring Data Relational, JDBC, or R2DBC in an affected version and must have at least one repository query that uses the Query By Example (QBE) feature with StringMatcher.STARTING, StringMatcher.ENDING, or StringMatcher.CONTAINING applied to a user-controlled input field. The vulnerable code path is only reachable when the QBE endpoint is exposed over the network and accepts externally-controlled string parameters that flow into the wildcard-generating StringMatcher without prior sanitization. Exploitation is limited by AC:H: the attacker must be able to distinguish boolean outcomes (results vs. no results) from the endpoint's response to construct a successful inference attack, which requires knowledge of the data model and patience across many requests. Deployments where QBE is used only with server-controlled or validated inputs, or where StringMatcher is restricted to EXACT mode, are not affected. Authentication requirements are not confirmed from CVSS alone (PR:N indicates no privileges needed at the framework level), but application-layer authentication gating a QBE endpoint would significantly limit exploitability in practice.

Impact

The CVSS base score of 4.8 (Medium) reflects a nuanced risk posture: AV:N confirms the attack is remotely reachable, PR:N confirms no authentication is required, and UI:N removes any need for victim interaction - all high-severity signals. However, AC:H (High Complexity) acknowledges that exploitation requires non-trivial effort: the attacker must identify a QBE-backed endpoint, understand the query structure well enough to craft effective boolean probes, and execute a multi-step inference process. The impact is bounded - C:L indicates limited confidentiality exposure (partial data leakage via inference, not bulk dump), I:N confirms no write capability, and A:L suggests minor availability degradation, possibly from query load generated by the inference attack. EPSS data is not available in the provided input and cannot be cited. No KEV listing and no POC code are identified, making this a low-urgency but genuine information disclosure risk for affected applications. The realistic priority is elevated for applications where QBE is exposed to unauthenticated or low-trust users (e.g., public search APIs), and lower for applications where QBE is only used in authenticated, internal workflows.

Exploit ScenarioDerived

An attacker discovers a public-facing REST search endpoint (e.g., /api/users?name=alice) backed by a Spring Data JDBC repository using QBE with StringMatcher.CONTAINING. By submitting names like 'a%p%secret%' and observing HTTP 200 (results) vs. empty responses, the attacker iteratively infers email addresses, usernames, or other column values through boolean-based blind inference, one character or token at a time. No public exploit code has been identified, and the AC:H rating reflects that this requires deliberate, multi-request inference logic rather than a single-shot exploit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 10, 2026

Boolean-based blind query injection in Spring Data Relational (JDBC and R2DBC) allows remote unauthenticated attackers to infer database contents by supplying wildcard characters to Query By Example (QBE) endpoints using StringMatcher modes STARTING, ENDING, or CONTAINING. The root cause is insufficient escaping of externally-controlled binding values before they reach the underlying query logic. No public exploit or CISA KEV listing has been identified at time of analysis, but the network-accessible, no-authentication-required attack surface makes this a meaningful exposure for any Spring Data application that exposes QBE search functionality.

RemediationAI

Upgrade to a version of Spring Data Relational/JDBC/R2DBC beyond the affected ranges per the vendor advisory at https://spring.io/security/cve-2026-41697. The input data lists affected ranges ending at 4.0.5, 3.5.11, 3.4.14, 3.3.16, 3.2.15, 3.1.14, 3.0.15, and 2.4.19, but does not explicitly state the patched release versions - consult the vendor advisory to confirm the exact fixed version for your branch before upgrading. If immediate patching is not feasible, the most actionable compensating control is to remove StringMatcher.STARTING, StringMatcher.ENDING, and StringMatcher.CONTAINING from any QBE queries that accept external user input, replacing them with exact-match queries (StringMatcher.DEFAULT or StringMatcher.EXACT) - this eliminates the wildcard injection surface entirely but removes partial-match search functionality. Alternatively, sanitize input by stripping or escaping SQL wildcard characters ('%', '_') before passing values to QBE matchers as an interim measure, accepting that this is an application-layer workaround rather than a framework fix. Restrict unauthenticated access to endpoints backed by QBE with wildcard matchers as an additional defense-in-depth measure.

Affected VersionsENISA

Spring Data JDBC 3.4.0 <3.4.15
Spring Data JDBC 3.1.0 <3.1.15
Spring Data R2DBC 3.2.0 <3.2.16
Spring Data JDBC 3.0.0 <3.0.16
Spring Data R2DBC 3.4.0 <3.4.15
Spring Data Relational 3.3.0 <3.3.17
Spring Data R2DBC 1.5.0 <1.5.20
Spring Data JDBC 3.5.0 <3.5.12
Spring Data Relational 4.0.0 <4.0.6
Spring Data JDBC 2.4.0 <2.4.20
Spring Data JDBC 3.2.0 <3.2.16
Spring Data R2DBC 4.0.0 <4.0.6
Spring Data Relational 3.2.0 <3.2.16
Spring Data R2DBC 3.5.0 <3.5.12
Spring Data JDBC 4.0.0 <4.0.6
Spring Data R2DBC 3.3.0 <3.3.17
Spring Data R2DBC 3.0.0 <3.0.16
Spring Data Relational 3.0.0 <3.0.16
Spring Data JDBC 3.3.0 <3.3.17
Spring Data R2DBC 3.1.0 <3.1.15
Spring Data Relational 3.1.0 <3.1.15
Spring Data Relational 2.4.0 <2.4.20
Spring Data Relational 3.5.0 <3.5.12
Spring Data Relational 3.4.0 <3.4.15

Affected Packages

maven org.springframework.data:spring-data-relational fix: 3.5.12, 4.0.6
euvd spring_data_jdbc fix: 2.4.20, 3.0.16, 3.1.15, 3.2.16, 3.3.17, 3.4.15, 3.5.12, 4.0.6
euvd spring_data_r2dbc fix: 1.5.20, 3.0.16, 3.1.15, 3.2.16, 3.3.17, 3.4.15, 3.5.12, 4.0.6
euvd spring_data_relational fix: 2.4.20, 3.0.16, 3.1.15, 3.2.16, 3.3.17, 3.4.15, 3.5.12, 4.0.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Spring Data Relational is the Spring ecosystem's abstraction layer for relational databases via JDBC and R2DBC. Query By Example (QBE) is a Spring Data feature that constructs queries dynamically from domain object instances. When using StringMatcher modes STARTING ('foo%'), ENDING ('%foo'), or CONTAINING ('%foo%'), the framework appends SQL LIKE wildcards to input values. The vulnerability (CWE-943 - Improper Neutralization of Special Elements in Data Query Logic) arises because externally-controlled input is not properly escaped before the wildcard characters are appended, meaning an attacker-supplied '%' or '_' character is not neutralized and passes directly into the generated query predicate. This enables boolean-based blind inference: by submitting carefully crafted wildcard patterns and observing whether queries return results or not, an attacker can iteratively reconstruct data values from the database without direct read output. Affected CPE covers org.springframework.data spring-data-relational, spring-data-jdbc, and spring-data-r2dbc across all listed version branches.

Know when Spring Data Relational gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vmware) PRIMARY 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
Red Hat 3.7 LOW

Primary rating from Vendor (vmware).

CVSS VectorVendor: vmware

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Jun 10, 2026 - 02:01 EUVD

DescriptionCVE.org

Spring Data Relational does not properly escape binding values of externally-controlled input when using StringMatcher (STARTING, ENDING, or CONTAINING) in Query By Example (QBE). An attacker can supply wildcard characters to perform boolean-based blind data inference.

Affected versions: Spring Data Relational/JDBC/R2DBC 4.0.0 through 4.0.5; 3.5.0 through 3.5.11; 3.4.0 through 3.4.14; 3.3.0 through 3.3.16; 3.2.0 through 3.2.15; 3.1.0 through 3.1.14; 3.0.0 through 3.0.15; 2.4.0 through 2.4.19.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy