Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-25638

CVE-2020-25638: Hibernate ORM SQL Injection Vulnerability

CVE-2020-25638 is a SQL injection flaw in Hibernate ORM affecting versions up to 5.4.23.Final. Attackers can exploit unsanitized literals in JPA Criteria API queries to access unauthorized data or conduct further attacks.

Published: March 4, 2026

CVE-2020-25638 Overview

A SQL injection vulnerability was discovered in Hibernate ORM versions prior to and including 5.4.23.Final. The flaw exists in the implementation of the JPA Criteria API, which permits unsanitized literals when a literal is used in the SQL comments of the query. This vulnerability could allow an attacker to access unauthorized information or potentially conduct further attacks against the underlying database.

Critical Impact

This SQL injection vulnerability in hibernate-core threatens data confidentiality and integrity by allowing attackers to access unauthorized information or conduct database manipulation attacks through unsanitized literals in JPA Criteria API query comments.

Affected Products

  • Hibernate ORM (versions prior to and including 5.4.23.Final)
  • Debian Linux 9.0 and 10.0
  • Quarkus (affected versions)
  • Oracle Communications Cloud Native Core Console 1.9.0
  • Oracle Retail Customer Management and Segmentation Foundation 19.0

Discovery Timeline

  • 2020-12-02 - CVE-2020-25638 published to NVD
  • 2025-04-23 - Last updated in NVD database

Technical Details for CVE-2020-25638

Vulnerability Analysis

This vulnerability (CWE-89: SQL Injection) affects the Hibernate ORM framework's implementation of the JPA Criteria API. When applications use literal values in JPA Criteria queries, these literals can be embedded into SQL comments without proper sanitization. The flaw allows attackers to break out of comment boundaries and inject arbitrary SQL statements.

The attack requires network access and involves a level of complexity due to the specific conditions needed for exploitation. However, when successfully exploited, the vulnerability poses significant risks to both data confidentiality and integrity, allowing unauthorized data access and potential database manipulation.

Root Cause

The root cause lies in insufficient input validation within the Hibernate ORM JPA Criteria API implementation. When processing literal values, the framework fails to properly sanitize user-controlled input before embedding it into SQL comment sections of generated queries. This allows specially crafted input containing comment-terminating sequences to escape the comment context and inject malicious SQL code.

Attack Vector

The attack vector is network-based, requiring an attacker to supply malicious input that gets processed through the JPA Criteria API. The attacker must craft input containing SQL comment escape sequences that, when processed by the vulnerable Hibernate version, break out of the comment boundary and execute arbitrary SQL statements.

An attacker would typically inject malicious strings through application input fields that are processed by JPA Criteria queries. The payload would include comment-terminating characters (such as */) followed by arbitrary SQL commands, effectively bypassing the intended query structure and gaining unauthorized database access.

Detection Methods for CVE-2020-25638

Indicators of Compromise

  • Unusual database query patterns containing SQL comment sequences (/*, */) in application logs
  • Database access logs showing queries with unexpected data extraction or modification operations
  • Application error logs indicating SQL syntax errors from malformed injection attempts
  • Evidence of data exfiltration or unauthorized database modifications

Detection Strategies

  • Implement database activity monitoring to detect anomalous SQL query patterns and comment-based injection attempts
  • Review application logs for suspicious input containing SQL comment escape sequences
  • Deploy web application firewalls (WAF) with rules to detect SQL injection patterns in JPA/Hibernate contexts
  • Use SentinelOne Singularity platform to monitor for behavioral indicators of SQL injection exploitation

Monitoring Recommendations

  • Enable detailed logging for Hibernate ORM query generation to identify suspicious literal handling
  • Monitor database audit logs for unauthorized data access or modification attempts
  • Implement alerting for applications using vulnerable Hibernate ORM versions in production environments
  • Correlate web application and database logs to identify injection attack chains

How to Mitigate CVE-2020-25638

Immediate Actions Required

  • Upgrade Hibernate ORM to version 5.4.24.Final or later immediately
  • Review and audit all JPA Criteria API usage in applications for potential exposure
  • Implement input validation and parameterized queries as defense-in-depth measures
  • Apply vendor-specific patches from Oracle, Debian, and other affected product vendors

Patch Information

Hibernate has released version 5.4.24.Final which addresses this SQL injection vulnerability. Organizations using affected Oracle products should apply the patches from the Oracle July 2021 CPU Alert, Oracle April 2022 CPU Alert, and Oracle July 2022 CPU Alert. Debian users should refer to Debian Security Advisory DSA-4908 and the Debian LTS Announcement for package updates.

Workarounds

  • Implement strict input validation to sanitize all user-supplied data before use in JPA Criteria queries
  • Use parameterized queries exclusively and avoid string concatenation in query construction
  • Deploy web application firewalls to filter SQL injection patterns at the network perimeter
  • Consider implementing database-level stored procedures to limit direct query manipulation
bash
# Configuration example
# Maven dependency update for Hibernate ORM
# Update pom.xml to use patched version:
# <dependency>
#     <groupId>org.hibernate</groupId>
#     <artifactId>hibernate-core</artifactId>
#     <version>5.4.24.Final</version>
# </dependency>

# Verify Hibernate version in application
mvn dependency:tree | grep hibernate-core

# For Gradle projects, update build.gradle:
# implementation 'org.hibernate:hibernate-core:5.4.24.Final'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechHibernate

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.52%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • Red Hat Bug Report

  • Apache Turbine Developer Thread

  • Apache Turbine Commit Thread

  • Debian LTS Announcement

  • Debian Security Advisory DSA-4908
  • Vendor Resources
  • Oracle July 2021 CPU Alert

  • Oracle April 2022 CPU Alert

  • Oracle July 2022 CPU Alert
  • Related CVEs
  • CVE-2026-0603: Hibernate SQL Injection Vulnerability

  • CVE-2025-14969: Hibernate Reactive DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English