Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify network-accessible QBE search endpoint
-
DeliverySubmit wildcard-injected input via StringMatcher field
-
ExploitObserve boolean result (match/no-match) in HTTP response
-
ExecutionIteratively refine wildcard patterns
-
ImpactInfer 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
Primary rating from Vendor (vmware).
CVSS VectorVendor: vmware
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-35893
GHSA-8r2h-xh92-gq57
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB