CVE-2019-3802:
Improper Neutralization of Wildcards or Matching Symbols
5.3
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.47581%
CWE
Published
6/4/2019
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.springframework.data:spring-data-jpa | maven | < 1.11.22 | 1.11.22 |
org.springframework.data:spring-data-jpa | maven | >= 2.1.0, < 2.1.8 | 2.1.8 |
org.springframework.data:spring-data-jpa | maven | >= 2.0.0, <= 2.0.14 | 2.1.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability occurs in Spring Data JPA's Query-by-Example (QBE) implementation where user-controlled example values are incorporated into SQL LIKE clauses without proper escaping when using STARTING, ENDING, or CONTAINING matchers. The primary vulnerable function is QueryByExamplePredicateBuilder.getPredicate() which processes example values and applies StringMatcher transformations. This function would appear in stack traces when building queries from malicious examples. The ExampleMatcher configuration methods (like GenericPropertyMatcher.ignoreCase()) are secondary indicators as they establish the unsafe matching mode. The patch likely modified these areas to add escaping logic for example values before wildcard expansion.