Spring Data Relational Parameter not Escaped for Query By Example LIKE Pattern

MEDIUM | JUNE 09, 2026 | CVE-2026-41697

Description

Spring Data Relational does not properly escape binging values of externally-controlled input when using StringMatcher (STARTING, ENDING, or CONTAINING) in Query By Example (QBE).

If an application actively wires externally-controlled input into a QBE probe, an attacker can supply wildcard characters to perform boolean-based blind data inference, allowing them to guess data within the queried entity.

This vulnerability is not exploitable by default. It requires the application developer to explicitly configure and expose a QBE probe that accepts untrusted input.

Affected Spring Products and Versions

Spring Data Relational:

  • 4.0.0 - 4.0.5
  • 3.5.0 - 3.5.11
  • 3.4.0 - 3.4.14
  • 3.0.0 - 3.3.16
  • 2.4.19 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
4.0.6OSS
4.0.5.1Enterprise Support Only
3.5.12OSS
3.5.11.1Enterprise Support Only
3.4.15Enterprise Support Only
3.3.17Enterprise Support Only
2.4.20Enterprise Support Only

No further mitigation steps are necessary.

History

  • 2026-06-09: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all