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
    • 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-2021-33813

CVE-2021-33813: JDOM SAXBuilder XXE Vulnerability

CVE-2021-33813 is an XML External Entity (XXE) vulnerability in JDOM SAXBuilder that enables attackers to trigger denial of service through malicious HTTP requests. This article covers technical details, affected versions, impact, and mitigation.

Published: March 4, 2026

CVE-2021-33813 Overview

CVE-2021-33813 is an XML External Entity (XXE) vulnerability discovered in the SAXBuilder component of JDOM through version 2.0.6. This vulnerability allows remote attackers to cause a denial of service (DoS) condition by sending specially crafted HTTP requests containing malicious XML payloads. The flaw exists due to improper handling of external entity references during XML parsing operations.

Critical Impact

Attackers can exploit this XXE vulnerability to cause service disruption through resource exhaustion, potentially affecting dependent applications including Apache Solr, Apache Tika, and Oracle Communications Messaging Server.

Affected Products

  • JDOM versions through 2.0.6
  • Apache Solr versions 8.8.1 and 8.9
  • Apache Tika version 1.25
  • Debian Linux 9.0
  • Fedora 35
  • Oracle Communications Messaging Server 8.1

Discovery Timeline

  • June 16, 2021 - CVE CVE-2021-33813 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-33813

Vulnerability Analysis

This vulnerability stems from the SAXBuilder class in JDOM failing to properly disable external entity processing by default when parsing XML documents. When an application uses SAXBuilder to parse untrusted XML input without explicitly configuring secure parsing features, an attacker can inject malicious XML containing external entity declarations. These declarations can reference external resources, causing the parser to attempt recursive entity expansion or fetch remote resources, leading to denial of service through resource exhaustion.

The issue is particularly concerning because JDOM is a widely-used Java library for XML manipulation, and the vulnerable SAXBuilder class is commonly used for reading XML documents from various input sources including HTTP requests, files, and streams. Applications that process XML from untrusted sources without proper validation are at risk.

Root Cause

The root cause of CVE-2021-33813 lies in the default configuration of the SAXBuilder class, which does not disable external entity and DTD processing by default. According to secure coding practices, XML parsers should have external entity processing disabled unless explicitly required. The JDOM library's SAXBuilder constructor creates instances that allow external entity processing, exposing applications to XXE attacks when processing untrusted XML content.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending a crafted HTTP request containing malicious XML payload with external entity declarations to any endpoint that uses the vulnerable JDOM SAXBuilder to parse XML. The malicious XML can contain entity definitions that trigger recursive expansion (billion laughs attack) or reference external resources, causing the target system to exhaust memory, CPU resources, or network connections, resulting in denial of service.

Common attack scenarios include:

  • Recursive entity expansion causing memory exhaustion
  • External entity references pointing to large or slow-responding resources
  • Entity expansion loops that consume CPU cycles

Detection Methods for CVE-2021-33813

Indicators of Compromise

  • Unusual memory consumption spikes in Java applications processing XML
  • HTTP requests containing suspicious XML payloads with DOCTYPE declarations and entity definitions
  • Application logs showing XML parsing errors or stack traces related to entity resolution
  • Network connections from the application to unexpected external hosts during XML processing

Detection Strategies

  • Monitor application dependencies for JDOM versions 2.0.6 and earlier using software composition analysis (SCA) tools
  • Implement web application firewall (WAF) rules to detect and block requests containing potentially malicious XML entity declarations
  • Review application code for usage of SAXBuilder without secure configuration settings
  • Deploy runtime application self-protection (RASP) solutions to detect XXE exploitation attempts

Monitoring Recommendations

  • Enable verbose logging for XML parsing operations to capture entity resolution attempts
  • Set up alerts for abnormal resource consumption patterns in services that process XML
  • Monitor outbound network connections from XML-processing applications for unauthorized external entity fetches
  • Implement application performance monitoring (APM) to detect parsing-related slowdowns

How to Mitigate CVE-2021-33813

Immediate Actions Required

  • Upgrade JDOM to version 2.0.6.1 or later which addresses this vulnerability
  • Configure SAXBuilder to disable external entity processing by setting appropriate features
  • Review and update dependent applications including Apache Solr, Apache Tika deployments
  • Apply vendor-specific patches from Oracle and Linux distributions

Patch Information

The JDOM project has addressed this vulnerability through a fix detailed in the GitHub Pull Request Discussion. Updated versions are available via the GitHub Release Notes. For Oracle products, security patches are available through the Oracle Security Alert - April 2022 and Oracle Security Alert - July 2022. Linux distribution users should apply patches announced in the Debian LTS Announcement - June 2021 and Fedora Package Announcements.

Workarounds

  • Configure SAXBuilder to disable external entities by setting the feature http://xml.org/sax/features/external-general-entities to false
  • Set the feature http://xml.org/sax/features/external-parameter-entities to false on SAXBuilder instances
  • Disable DTD processing entirely by setting http://apache.org/xml/features/disallow-doctype-decl to true
  • Implement input validation to reject XML documents containing DOCTYPE declarations from untrusted sources
java
// Secure SAXBuilder Configuration Example
SAXBuilder builder = new SAXBuilder();
builder.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
builder.setFeature("http://xml.org/sax/features/external-general-entities", false);
builder.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
builder.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechJdom

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.08%

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

  • GitHub Release Notes

  • Apache Solr Issue Thread

  • Apache Solr Issue Thread

  • Apache Solr Issue Thread

  • Apache Solr Issue Thread

  • Apache Solr Issue Thread

  • Apache Solr Issue Thread

  • Apache Solr Issue Thread

  • Apache Tika Issue Thread

  • Debian LTS Announcement - June 2021

  • Debian LTS Announcement - July 2021

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Oracle Security Alert - July 2022
  • Vendor Resources
  • GitHub Pull Request Discussion

  • Oracle Security Alert - April 2022
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE 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