CVE-2016-6652 Spring Data JPA
| Affected software | Spring Data JPA |
|---|---|
| Severity | 5.6 Medium CVSS 3.0 2 scores |
| Fixed in | 1.9.6, 1.10.4 |
| Weakness | SQL injection (CWE-89) |
| Published | 5 Oct 2016 |
| Updated | 17 Jun 2026 |
Description
SQL injection vulnerability in Pivotal Spring Data JPA before 1.9.6 (Gosling SR6) and 1.10.x before 1.10.4 (Hopper SR4), when used with a repository that defines a String query using the @Query annotation, allows attackers to execute arbitrary JPQL commands via a sort instance with a function call.
Exploitation status
No public exploit
No exploit has been reported in the sources we check. Published 10 years ago.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment no assessment published
- Indexed PoC none indexed
- EPSS 0.82% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full SQL injection
- Action available security rule
- Review automated Inferred
- Record active
| Decided by | A vulnerability class already blocked by an ARMR security rule |
|---|---|
| Finding | Protected by Waratek's ARMR sql-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-89: SQL Injection. |
How to mitigate CVE-2016-6652
Upgrade Spring Data JPA to a release that fixes it: 1.9.6 or 1.10.4. Until you can, Waratek RASP blocks exploitation with its SQL injection rule. It runs inside the Java application, with no code changes.
CVSS
5.6 MEDIUM
v3.0 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
2 metrics
CVSS
5.6 MEDIUM v3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
2 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| CVSS 3.0 | 5.6 | MEDIUM | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
NVD | Primary | published |
| CVSS 2.0 | 6.8 | none | AV:N/AC:M/Au:N/C:P/I:P/A:P |
NVD | Primary |
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
org.springframework.data:spring-data-jpa |
0 | 1.9.6 |
unbounded |
org.springframework.data:spring-data-jpa |
1.10.0 | 1.10.4 |
unbounded |
Products and versions
2 products, 4 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| osv | org.springframework.data | spring-data-jpa | generic | < 1.9.6 · ≥ 1.10.0 and < 1.10.4 |
| nvd | pivotal software | spring data jpa | generic | ≤ 1.9.4 · 1.10.2 |
References
Timeline
Timeline
| Published | 2016-10-05 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |