GitHub Advisoryadvisory · Maven
GHSA-xr4v-28rm-pvgw Improper Neutralization of Special Elements used in an SQL Command Pivotal Spring Data JPA
MEDIUM
Official page ↗
- Aliases
- CVE-2016-6652
- Ecosystem
- Maven
- Packages
- org.springframework.data:spring-data-jpa
- Severity
- Moderate
- CVSS vector
- CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- Weaknesses
- CWE-89
- Reviewed
- 2022-07-06
Affected packages
• Maven org.springframework.data:spring-data-jpa: < 1.9.6 → fixed in 1.9.6
• Maven org.springframework.data:spring-data-jpa: >= 1.10.0, < 1.10.4 → fixed in 1.10.4
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.
Related
Alias · CVE (1)
- CVE-2016-6652 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… vulnerability
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-6652 advisory
- https://github.com/spring-projects/spring-data-jpa/commit/b8e7fe web
- https://jira.spring.io/browse/DATAJPA-965 web
- https://pivotal.io/security/cve-2016-6652 web
- https://security.gentoo.org/glsa/201701-01 web
- http://www.securityfocus.com/bid/93276 web