Medium

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

  • Disclosed: 17.05.2022
  • Updated: 11.10.2026 11:20

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.springframework.data:spring-data-jpa < 1.9.6, >= 1.10.0, < 1.10.4 1.9.6, 1.10.4

References

CVSS score 5.6/10
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-89
Platform
Java / Kotlin (Maven)
Package
org.springframework.data:spring-data-jpa
Disclosed
17.05.2022
Updated
11.10.2026 11:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-xr4v-28rm-pvgw - CC BY 4.0

Vulnerability history: org.springframework.data:spring-data-jpa

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
05.2019 05.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 3

Disclosures per year

  1. 2019: 2
  2. 2020: 0
  3. 2021: 0
  4. 2022: 1
  5. 2023: 0
  6. 2024: 0
  7. 2025: 0
  8. 2026: 0
  1. Improper Neutralization of Special Elements used in an SQL Command Pivotal Spring Data JPA this entry
    Medium · 5.6 CVE-2016-6652 < 1.9.6, >= 1.10.0, < 1.10.4 1.9.6, 1.10.4
  2. Medium · 5.3 CVE-2019-3802 >= 2.1.0, < 2.1.8, >= 2.0.0, < 2.1.8, < 1.11.22 2.1.8, 1.11.22
  3. Medium · 5.3 CVE-2019-3797 < 1.11.20, >= 2.0.0, < 2.0.14, >= 2.1.0, < 2.1.6 1.11.20, 2.0.14, 2.1.6

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.