SQL Injection Vulnerability in libhibernate3-java: A Threat to Data Integrity

libhibernate3-java Updated 02 Oct 2025

Summary

02/12/2020
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2020-25638: A flaw was found in hibernate-core in versions prior to and including 5.4.23.Final. Affects libhibernate3-java versions < 3.6.10.Final-11. Fixed in 3.6.10.Final-11. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libhibernate3-java is a Java library that provides a framework for mapping an object-oriented domain model to a relational database. It is widely used in enterprise applications for data persistence and management. The library facilitates the development of database-driven applications by simplifying the interaction between Java objects and database tables. However, a critical vulnerability has been identified in this library that could compromise data security.

Vulnerability Detail

A flaw was found in hibernate-core in versions prior to and including 5.4.23.Final. This vulnerability allows for SQL injection through the JPA Criteria API, where unsanitized literals can be included in SQL comments of queries. This could enable attackers to access unauthorized information or conduct further attacks, posing a significant threat to data confidentiality and integrity.

How To Fix

Minimum fixed version

3.6.10.Final-11

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libhibernate3-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, you can sanitize inputs to prevent SQL injection attacks. Ensure that any user inputs are properly validated and escaped before being used in SQL queries. This can help mitigate the risk until the package is updated.

Conclusion

The SQL injection vulnerability in libhibernate3-java poses a significant risk to data integrity and confidentiality. It is crucial to update to the patched version 3.6.10.Final-11 to mitigate this risk. Additionally, implementing input validation can serve as a temporary workaround while the update is applied.

See every vulnerability recorded for libhibernate3-java →

Share this vulnerability

FAQ

The vulnerability is a SQL injection flaw that allows attackers to manipulate SQL queries through unsanitized inputs.

Versions prior to and including 5.4.23.Final are affected by this vulnerability.

The vulnerability could lead to unauthorized access to sensitive data and potential data integrity issues.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Implement input validation and sanitization as a workaround to reduce the risk of SQL injection attacks until you can apply the update.

Related vulnerabilities

Recent vulnerabilities recorded for libhibernate3-java.

How To Fix

Minimum fixed version

3.6.10.Final-11

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libhibernate3-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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