The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2021-23463

CVE-2021-23463: H2 Database XXE Injection Vulnerability

CVE-2021-23463 is an XXE injection flaw in H2 Database that allows attackers to process malicious XML content through the JdbcSQLXML class. This article covers technical details, affected versions, and mitigation strategies.

Published: February 25, 2026

CVE-2021-23463 Overview

The package com.h2database:h2 from version 1.4.198 and before 2.0.202 is vulnerable to XML External Entity (XXE) Injection via the org.h2.jdbc.JdbcSQLXML class object. This vulnerability is triggered when the class receives parsed string data from the org.h2.jdbc.JdbcResultSet.getSQLXML() method and subsequently executes the getSource() method with DOMSource.class as the parameter.

Critical Impact

Successful exploitation allows attackers to read sensitive files from the server, perform server-side request forgery (SSRF), or cause denial of service conditions through network-accessible XML parsing operations.

Affected Products

  • H2 Database versions from 1.4.198 to before 2.0.202
  • Applications using com.h2database:h2 Maven dependency within the vulnerable version range
  • Java applications utilizing H2's JDBC SQLXML functionality

Discovery Timeline

  • 2021-12-10 - CVE CVE-2021-23463 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-23463

Vulnerability Analysis

This XXE injection vulnerability exists in the H2 Database's XML handling implementation. The root cause lies in the JdbcSQLXML class, which fails to properly configure the XML parser to disable external entity resolution when processing XML data retrieved via JDBC operations.

When an application retrieves SQLXML data using JdbcResultSet.getSQLXML() and then calls getSource(DOMSource.class), the underlying XML parser processes external entity declarations without restrictions. This allows an attacker who can control the XML content stored in the database to inject malicious entity declarations that reference external resources.

The vulnerability enables attackers to read arbitrary files from the server's filesystem, make outbound network connections to attacker-controlled servers (SSRF), or cause denial of service through recursive entity expansion (billion laughs attack) or by referencing slow or unavailable network resources.

Root Cause

The vulnerability stems from improper configuration of the XML parser within the JdbcSQLXML class. Specifically, the parser does not disable the following dangerous features:

  • XMLConstants.FEATURE_SECURE_PROCESSING is not enabled
  • External general entities and external parameter entities are not disabled
  • DOCTYPE declarations are not restricted

When getSource(DOMSource.class) is invoked, the XML content is parsed using a DocumentBuilder that allows resolution of external entities, enabling XXE attacks.

Attack Vector

The attack requires network access to the vulnerable application. An attacker must be able to insert or control XML content that is later processed by the vulnerable JdbcSQLXML.getSource() method. This could occur through:

  1. Direct database access where the attacker can insert malicious XML into an SQLXML column
  2. Application functionality that accepts XML input and stores it in the H2 database
  3. Data synchronization or import features that process untrusted XML

When the application later retrieves this data using getSQLXML() and processes it with getSource(DOMSource.class), the malicious external entities are resolved, leading to information disclosure or SSRF. For detailed technical analysis, refer to the Snyk Vulnerability Report and GitHub Issue #3195.

Detection Methods for CVE-2021-23463

Indicators of Compromise

  • Unexpected outbound network connections from the H2 database process or Java application server to external hosts
  • Unusual file access patterns indicating attempts to read sensitive files such as /etc/passwd, application configuration files, or credential stores
  • XML parsing errors in application logs related to external entity resolution failures
  • Presence of XML content in database columns containing DOCTYPE declarations with SYSTEM or PUBLIC entity references

Detection Strategies

  • Implement dependency scanning using software composition analysis (SCA) tools to identify applications using vulnerable H2 Database versions (1.4.198 to 2.0.202)
  • Monitor network traffic for unexpected outbound connections originating from application servers, particularly to uncommon ports or suspicious domains
  • Review application logs for XML parsing exceptions or warnings related to external entity processing
  • Audit database content for SQLXML columns containing suspicious DOCTYPE declarations or entity references

Monitoring Recommendations

  • Deploy network intrusion detection rules to identify XXE-related SSRF traffic patterns from application hosts
  • Configure application-level logging to capture XML processing activities, particularly those involving JdbcSQLXML class operations
  • Implement file integrity monitoring on sensitive system files to detect unauthorized read attempts
  • Use SentinelOne's application vulnerability detection to identify running applications with vulnerable H2 Database dependencies

How to Mitigate CVE-2021-23463

Immediate Actions Required

  • Upgrade H2 Database to version 2.0.202 or later, which includes the security fix for this vulnerability
  • Audit all applications using H2 Database to inventory affected deployments and prioritize remediation
  • If immediate upgrade is not possible, implement input validation to sanitize XML content before storage in SQLXML columns
  • Review application code to identify usage of JdbcSQLXML.getSource(DOMSource.class) and assess exposure

Patch Information

The H2 Database maintainers addressed this vulnerability in version 2.0.202. The fix implements secure XML parser configuration that disables external entity processing. For Maven-based projects, update your dependency to:

xml
<dependency>
    <groupId>com.h2database</groupId>
    <artifactId>h2</artifactId>
    <version>2.0.202</version>
</dependency>

The fix details are available in GitHub Pull Request #3199. Additional vendor advisories are available from Oracle's Critical Patch Update and the NetApp Security Advisory.

Workarounds

  • Avoid using JdbcSQLXML.getSource(DOMSource.class) in application code until the upgrade can be completed
  • Implement a custom XML parser wrapper that explicitly disables external entity processing before parsing SQLXML data
  • Apply input validation to reject XML content containing DOCTYPE declarations or entity references before storage
  • Use network segmentation to restrict outbound connections from application servers, limiting SSRF impact
bash
# Example Maven dependency update command
mvn versions:use-latest-releases -Dincludes=com.h2database:h2

# Verify H2 version after update
mvn dependency:tree | grep h2database

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechH2database

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.38%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-611
  • Technical References
  • GitHub Commit Update

  • NetApp Security Advisory

  • Oracle Critical Patch Update
  • Vendor Resources
  • GitHub Issue #3195

  • GitHub Pull Request #3199

  • Snyk Vulnerability Report
  • Related CVEs
  • CVE-2022-23221: H2 Database H2 Console RCE Vulnerability

  • CVE-2021-42392: H2 Database RCE Vulnerability Explained
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