CVE-2016-6652
MEDIUM 5.6CVSS 3.0Improper Neutralization of Special Elements used in an SQL Command Pivotal Spring Data JPA
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.
- Published
- 5 Oct 2016
- Last modified
- 17 Jun 2026
- Assigned by
- security_alert@emc.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-xr4v-28rm-pvgw
- Sources
- NVDJSONOSV GHSA-xr4v-28rm-pvgwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.6 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.6 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pivotal_software | spring_data_jpacpe:2.3:a:pivotal_software:spring_data_jpa:*:*:*:*:*:*:*:* |
<= 1.9.4 | |
| NVD | pivotal_software | spring_data_jpacpe:2.3:a:pivotal_software:spring_data_jpa:1.10.2:*:*:*:*:*:*:* |
= 1.10.2 | |
| OSV | Maven | org.springframework.data:spring-data-jpa | < 1.9.6 | 1.9.6 |
| OSV | Maven | org.springframework.data:spring-data-jpa | >= 1.10.0, < 1.10.4 | 1.10.4 |
References
- http://www.securityfocus.com/bid/93276 · WEB
- https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe · Patch, WEB
- https://jira.spring.io/browse/DATAJPA-965 · Mitigation, Vendor Advisory, WEB
- https://pivotal.io/security/cve-2016-6652 · Vendor Advisory, WEB
- https://security.gentoo.org/glsa/201701-01 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2016-6652 · ADVISORY
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 5 Oct 2016)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 May 2022)