CVE-2019-14900: SQL Injection in Hibernate ORM

org.hibernate:hibernate-core Updated 02 Oct 2025

Summary

10/02/2022
Yes i
Moderate
6.5

CVE-2019-14900: SQL Injection in Hibernate ORM. Affects org.hibernate:hibernate-core across 3 version ranges.

< 5.3.18 >= 5.4.0, < 5.4.18 >= 5.5.0.Alpha1, < 5.5.0.Beta1

Fixed in 5.3.18, 5.4.18 or 5.5.0.Beta1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Hibernate ORM is an object-relational mapping framework for the Java programming language. It provides a framework for mapping an object-oriented domain model to a relational database. The infinispan-hibernate-cache-v53 package is an extension of Hibernate ORM that integrates it with Infinispan, a distributed in-memory key/value data store. This package allows Hibernate to use Infinispan as a second-level cache for improved performance. However, versions before 5.3.18, 5.4.18, and 5.5.0.Beta1 of this package are vulnerable to a SQL injection attack.

Vulnerability Detail

The vulnerability in the infinispan-hibernate-cache-v53 package arises from a flaw in the implementation of the JPA Criteria API. When a literal is used in the SELECT or GROUP BY parts of a query, unsanitized literals can be permitted, leading to a SQL injection vulnerability. An attacker could exploit this vulnerability to access unauthorized information or potentially conduct further attacks. The vulnerability has a CVSS score of 6.5, indicating a moderate severity level.

How To Fix

Latest published version: 8.0.0.Beta1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 5.3.18 5.3.18
  • >= 5.4.0, < 5.4.18 5.4.18
  • >= 5.5.0.Alpha1, < 5.5.0.Beta1 5.5.0.Beta1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed versions of the package.

Conclusion

The infinispan-hibernate-cache-v53 package is vulnerable to a SQL injection attack in versions before 5.3.18, 5.4.18, and 5.5.0.Beta1. It is recommended to upgrade to the fixed versions of the package to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.hibernate:hibernate-core →

Share this vulnerability

FAQ

Hibernate ORM is an object-relational mapping framework for the Java programming language. It provides a framework for mapping an object-oriented domain model to a relational database.

The infinispan-hibernate-cache-v53 package is an extension of Hibernate ORM that integrates it with Infinispan, a distributed in-memory key/value data store. It allows Hibernate to use Infinispan as a second-level cache for improved performance.

The JPA Criteria API is a set of classes and interfaces in Java Persistence API (JPA) that provides a type-safe and object-oriented way to build queries for entities.

A SQL injection vulnerability occurs when an application does not properly sanitize user-supplied input that is used in SQL queries, allowing an attacker to manipulate the queries and potentially access or modify unauthorized data.

The CVSS score of this vulnerability is 6.5, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for org.hibernate:hibernate-core.

How To Fix

Latest published version: 8.0.0.Beta1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 5.3.18 5.3.18
  • >= 5.4.0, < 5.4.18 5.4.18
  • >= 5.5.0.Alpha1, < 5.5.0.Beta1 5.5.0.Beta1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback