{"api_version":"1","generated_at":"2026-04-23T11:32:56+00:00","cve":"CVE-2016-6652","urls":{"html":"https://cve.report/CVE-2016-6652","api":"https://cve.report/api/cve/CVE-2016-6652.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-6652","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-6652"},"summary":{"title":"CVE-2016-6652","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.","state":"PUBLIC","assigner":"security_alert@emc.com","published_at":"2016-10-05 16:59:00","updated_at":"2017-07-01 01:30:00"},"problem_types":["CWE-89"],"metrics":[],"references":[{"url":"https://jira.spring.io/browse/DATAJPA-965","name":"https://jira.spring.io/browse/DATAJPA-965","refsource":"CONFIRM","tags":["Mitigation","Vendor Advisory"],"title":"[DATAJPA-965] Mapping Sort instances to ORDER BY expressions should be restricted to fields for manually defined queries - Spring JIRA","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/93276","name":"93276","refsource":"BID","tags":[],"title":"Pivotal Spring Data JPA CVE-2016-6652 SQL Injection Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://pivotal.io/security/cve-2016-6652","name":"https://pivotal.io/security/cve-2016-6652","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"CVE-2016-6652 Spring Data JPA Blind SQL Injection Vulnerability | Security | Pivotal","mime":"text/html","httpstatus":"403","archivestatus":"200"},{"url":"https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe","name":"https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe","refsource":"CONFIRM","tags":["Patch"],"title":"DATAJPA-965 - Fix potential blind SQL injection in Sort when used in … · spring-projects/spring-data-jpa@b8e7fec · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/201701-01","name":"GLSA-201701-01","refsource":"GENTOO","tags":[],"title":"MariaDB and MySQL: Multiple vulnerabilities (GLSA 201701-01) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-6652","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6652","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"6652","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pivotal_software","cpe5":"spring_data_jpa","cpe6":"1.10.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"6652","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pivotal_software","cpe5":"spring_data_jpa","cpe6":"1.10.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"6652","vulnerable":"1","versionEndIncluding":"1.9.4","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pivotal_software","cpe5":"spring_data_jpa","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2016-6652","qid":"710332","title":"Gentoo Linux MariaDB and MySQL Multiple Vulnerabilities (GLSA 201701-01)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security_alert@emc.com","ID":"CVE-2016-6652","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"93276","refsource":"BID","url":"http://www.securityfocus.com/bid/93276"},{"name":"https://jira.spring.io/browse/DATAJPA-965","refsource":"CONFIRM","url":"https://jira.spring.io/browse/DATAJPA-965"},{"name":"https://pivotal.io/security/cve-2016-6652","refsource":"CONFIRM","url":"https://pivotal.io/security/cve-2016-6652"},{"name":"GLSA-201701-01","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201701-01"},{"name":"https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe","refsource":"CONFIRM","url":"https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe"}]}},"nvd":{"publishedDate":"2016-10-05 16:59:00","lastModifiedDate":"2017-07-01 01:30:00","problem_types":["CWE-89"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW","baseScore":5.6,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":3.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:pivotal_software:spring_data_jpa:1.10.2:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:pivotal_software:spring_data_jpa:*:*:*:*:*:*:*:*","versionEndIncluding":"1.9.4","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"6652","Ordinal":"92957","Title":"CVE-2016-6652","CVE":"CVE-2016-6652","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"6652","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2016","CveId":"6652","Ordinal":"2","NoteData":"2016-10-05","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"6652","Ordinal":"3","NoteData":"2017-06-30","Type":"Other","Title":"Modified"}]}}}