{"id":"GHSA-xr4v-28rm-pvgw","summary":"Improper Neutralization of Special Elements used in an SQL Command  Pivotal Spring Data JPA","details":"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.","aliases":["CVE-2016-6652"],"modified":"2023-11-08T03:58:33.104301Z","published":"2022-05-17T02:37:09Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-07-06T19:45:18Z","nvd_published_at":"2016-10-05T16:59:00Z","cwe_ids":["CWE-89"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6652"},{"type":"WEB","url":"https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe"},{"type":"WEB","url":"https://jira.spring.io/browse/DATAJPA-965"},{"type":"WEB","url":"https://pivotal.io/security/cve-2016-6652"},{"type":"WEB","url":"https://security.gentoo.org/glsa/201701-01"},{"type":"WEB","url":"http://www.securityfocus.com/bid/93276"}],"affected":[{"package":{"name":"org.springframework.data:spring-data-jpa","ecosystem":"Maven","purl":"pkg:maven/org.springframework.data/spring-data-jpa"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.6"}]}],"versions":["1.0.0.RELEASE","1.0.1.RELEASE","1.0.2.RELEASE","1.0.3.RELEASE","1.1.0.RELEASE","1.1.1.RELEASE","1.1.2.RELEASE","1.2.0.RELEASE","1.2.1.RELEASE","1.3.0.RELEASE","1.3.1.RELEASE","1.3.2.RELEASE","1.3.3.RELEASE","1.3.4.RELEASE","1.3.5.RELEASE","1.4.0.RELEASE","1.4.1.RELEASE","1.4.2.RELEASE","1.4.3.RELEASE","1.4.4.RELEASE","1.4.5.RELEASE","1.5.0.RELEASE","1.5.1.RELEASE","1.5.2.RELEASE","1.5.3.RELEASE","1.6.0.RELEASE","1.6.1.RELEASE","1.6.2.RELEASE","1.6.4.RELEASE","1.6.5.RELEASE","1.6.6.RELEASE","1.7.0.RELEASE","1.7.1.RELEASE","1.7.2.RELEASE","1.7.3.RELEASE","1.7.4.RELEASE","1.8.0.RC1","1.8.0.RELEASE","1.8.1.RELEASE","1.8.2.RELEASE","1.9.0.RELEASE","1.9.1.RELEASE","1.9.2.RELEASE","1.9.4.RELEASE","1.9.5.RELEASE"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-xr4v-28rm-pvgw/GHSA-xr4v-28rm-pvgw.json"}},{"package":{"name":"org.springframework.data:spring-data-jpa","ecosystem":"Maven","purl":"pkg:maven/org.springframework.data/spring-data-jpa"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.10.0"},{"fixed":"1.10.4"}]}],"versions":["1.10.0.RELEASE","1.10.1.RELEASE","1.10.2.RELEASE","1.10.3.RELEASE"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-xr4v-28rm-pvgw/GHSA-xr4v-28rm-pvgw.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"}]}