{"cve":"CVE-2016-6652","nvd":{"published":"2016-10-05T16:59:04.757","modified":"2026-06-17T00:51:32.190","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.6},"cwes":["CWE-89"],"references":["http://www.securityfocus.com/bid/93276","https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe","https://jira.spring.io/browse/DATAJPA-965","https://pivotal.io/security/cve-2016-6652","https://security.gentoo.org/glsa/201701-01"],"products":["pivotal_software:spring_data_jpa"],"source":"nvd","synced_at":"2026-10-19T20:40:10.783210791+00:00"},"epss":{"cve":"CVE-2016-6652","score":0.00822,"percentile":0.57323,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xr4v-28rm-pvgw","url":"https://osv.dev/vulnerability/GHSA-xr4v-28rm-pvgw","summary":"Improper Neutralization of Special Elements used in an SQL Command  Pivotal Spring Data JPA","modified":"2023-11-08T03:58:33.104301Z","packages":[{"ecosystem":"Maven","name":"org.springframework.data:spring-data-jpa","purl":"pkg:maven/org.springframework.data/spring-data-jpa","ranges":["<1.9.6"],"fixed":["1.9.6"]},{"ecosystem":"Maven","name":"org.springframework.data:spring-data-jpa","purl":"pkg:maven/org.springframework.data/spring-data-jpa","ranges":[">=1.10.0 <1.10.4"],"fixed":["1.10.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}