Skip to content
OpenAdvisories
Medium · 5.6 CVE-2016-6652 EUVD-2022-5849GHSA-xr4v-28rm-pvgw

Improper Neutralization of Special Elements used in an SQL Command Pivotal Spring Data JPA

Published Oct 5, 2016 · Updated Aug 6, 2024 · Assigned by dell

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.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework.data:spring-data-jpa < 1.9.6 1.9.6 GHSA-xr4v-28rm-pvgw
Maven org.springframework.data:spring-data-jpa >= 1.10.0, < 1.10.4 1.10.4 GHSA-xr4v-28rm-pvgw

References