Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-6652
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:46 UTC · Revision 1
Source evidence
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.
osv:CVE-2016-6652
Complete source record
{
"id": "1ab2f9720258e3a6a5b2c83012ef735349838d156186361e40b556c98880060a",
"url": "https://osv.dev/vulnerability/CVE-2016-6652",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-6652",
"summary": "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.",
"evidence": "osv:CVE-2016-6652",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2016-6652",
"aliases": [
"CVE-2016-6652",
"GHSA-xr4v-28rm-pvgw"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/spring-projects/spring-data-jpa",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "8bb2aebe37ed642109112cb7125497569da5ec0d"
},
{
"introduced": "7a8e366ef4dc55cd39e18fe2862164985c9c17b3"
},
{
"last_affected": "7a8e366ef4dc55cd39e18fe2862164985c9c17b3"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:pivotal_software:spring_data_jpa:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.9.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:pivotal_software:spring_data_jpa:1.10.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.10.2"
},
{
"last_affected": "1.10.2"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"1.10.2",
"1.10.2.RELEASE",
"1.9.4.RELEASE",
"1.9.2.RELEASE",
"1.9.1.RELEASE",
"1.9.0.RELEASE",
"1.9.0.RC1",
"1.9.0.M1",
"1.8.0.RELEASE",
"1.8.0.RC1",
"1.8.0.M1",
"1.7.0.RELEASE",
"1.7.0.RC1",
"1.7.0.M1",
"1.6.0.RELEASE",
"1.6.0.RC1",
"1.6.0.M1",
"1.5.0.RELEASE",
"1.5.0.RC1",
"1.5.0.M1",
"1.4.0.RELEASE",
"1.4.0.RC1",
"1.4.0.M1",
"1.3.0.RELEASE",
"1.2.0.RELEASE",
"1.2.0.RC1",
"1.2.0.M1",
"1.1.0.RELEASE",
"1.1.0.RC1",
"1.1.0.M1",
"1.0.0.RELEASE",
"1.0.0.RC1",
"1.0.0.M2",
"1.0.0.M1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-6652.json"
}
}
],
"modified": "2026-10-20T10:47:56.412634866Z",
"provider": "osv",
"references": [
"https://jira.spring.io/browse/DATAJPA-965",
"https://pivotal.io/security/cve-2016-6652",
"https://security.gentoo.org/glsa/201701-01",
"https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-6652",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 379836,
"published_at": "2016-10-05T16:59:04.757+00:00"
}