PT-2016-7022 · Pivotal · Spring Data Jpa
Antti Ahola
+5
·
Published
2016-10-05
·
Updated
2022-05-17
·
CVE-2016-6652
CVSS v2.0
6.8
Medium
| Vector | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Name of the Vulnerable Software and Affected Versions
Pivotal Spring Data JPA versions prior to 1.9.6 (Gosling SR6)
Pivotal Spring Data JPA versions 1.10.x prior to 1.10.4 (Hopper SR4)
Description
The issue allows attackers to execute arbitrary JPQL commands via a sort instance with a function call, when used with a repository that defines a String query using the
@Query annotation.Recommendations
For Pivotal Spring Data JPA versions prior to 1.9.6 (Gosling SR6), update to version 1.9.6 or later.
For Pivotal Spring Data JPA versions 1.10.x prior to 1.10.4 (Hopper SR4), update to version 1.10.4 or later.
As a temporary workaround, consider restricting the use of the
@Query annotation in repositories that define String queries.Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Spring Data Jpa