High

SQL injection in hibernate-core

  • Disclosed: 09.02.2022
  • Updated: 11.10.2026 12:21

A flaw was found in hibernate-core in versions prior to 5.3.20.Final and in 5.4.0.Final up to and including 5.4.23.Final. A SQL injection in the implementation of the JPA Criteria API can permit unsanitized literals when a literal is used in the SQL comments of the query. This flaw could allow an attacker to access unauthorized information or possibly conduct further attacks. The highest threat from this vulnerability is to data confidentiality and integrity.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.hibernate:hibernate-core >= 5.4.0.Final, < 5.4.24.Final, < 5.3.20.Final 5.4.24.Final, 5.3.20.Final

References

CVSS score 7.4/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness (CWE)
CWE-89
Platform
Java / Kotlin (Maven)
Package
org.hibernate:hibernate-core
Disclosed
09.02.2022
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-j8jw-g6fq-mp7h - CC BY 4.0

Vulnerability history: org.hibernate:hibernate-core

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
02.2022 01.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 1

Disclosures per year

  1. 2022: 2
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 1
  1. High · 8.3 CVE-2026-0603 >= 5.2.8, < 5.3.38 5.3.38
  2. Medium · 6.5 CVE-2019-14900 < 5.3.18, >= 5.4.0, < 5.4.18, >= 5.5.0.Alpha1, < 5.5.0.Beta1 5.3.18, 5.4.18, 5.5.0.Beta1
  3. SQL injection in hibernate-core this entry
    High · 7.4 CVE-2020-25638 >= 5.4.0.Final, < 5.4.24.Final, < 5.3.20.Final 5.4.24.Final, 5.3.20.Final

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.