WaratekVRT Sign in

CVE-2016-6652 Spring Data JPA

Affected softwareSpring Data JPA
Severity5.6 Medium CVSS 3.0 2 scores
Fixed in1.9.6, 1.10.4
WeaknessSQL injection (CWE-89)
Published5 Oct 2016
Updated17 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.

  • 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

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

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.

Waratek RASP Runtime protection for Java applications

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

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.

VersionScoreBandVectorAssignerType
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
PackageIntroducedFixedLast 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
SourceVendorProductSchemeAffected 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

URLTags
https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe WEB
https://jira.spring.io/browse/DATAJPA-965 WEB
https://pivotal.io/security/cve-2016-6652 WEB
https://security.gentoo.org/glsa/201701-01 WEB
http://www.securityfocus.com/bid/93276 WEB

Timeline

Published2016-10-05By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.