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-2026-31248

CVE-2026-31248: Docling METS GBS XML Entity Expansion DoS

CVE-2026-31248 is an XML Entity Expansion vulnerability in Docling's METS GBS backend allowing attackers to trigger denial of service. This article covers the technical details, affected versions, impact, and mitigation.

Published: May 18, 2026

CVE-2026-31248 Overview

CVE-2026-31248 affects the Docling document parser through version 2.61.0. The METS GBS backend extracts and validates XML files from .tar.gz archives using etree.fromstring() without disabling entity resolution. Attackers can submit a crafted archive containing an XML file with nested entity definitions, commonly known as an XML Bomb. When Docling parses the file, exponential entity expansion exhausts memory and CPU resources. The result is a denial of service (DoS) on the system running the parser. The flaw is categorized as Improper Restriction of Recursive Entity References in DTDs (XML Entity Expansion) [CWE-776].

Critical Impact

Remote attackers can trigger resource exhaustion and crash document processing services by submitting a malicious .tar.gz archive without authentication or user interaction.

Affected Products

  • Docling document parser through version 2.61.0
  • Docling METS GBS backend component
  • Applications and services that embed Docling for document ingestion

Discovery Timeline

  • 2026-05-11 - CVE-2026-31248 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-31248

Vulnerability Analysis

Docling's METS GBS backend processes archives that bundle METS (Metadata Encoding and Transmission Standard) XML descriptors alongside content files. The backend opens the .tar.gz archive, extracts the embedded XML, and passes it directly to etree.fromstring() from the lxml library. The parser is invoked with default options, which leave external entity resolution and internal entity expansion enabled. An attacker who controls the archive contents controls the XML payload the parser receives.

XML Entity Expansion abuses recursive entity declarations to multiply a small input into gigabytes of in-memory data. The canonical Billion Laughs pattern defines an entity that references another entity multiple times, which in turn references a third entity, and so on. Each parsing layer expands references exponentially, exhausting heap memory and CPU cycles before the document is fully materialized. The Docling worker process becomes unresponsive or terminates, denying service to all queued documents.

Root Cause

The root cause is the use of etree.fromstring() without a hardened parser configuration. The function does not disable entity resolution by default, so any document type definition (DTD) declared inside the XML is processed. The METS GBS backend performs no pre-parse size checks, entity-count limits, or DTD stripping before handing the buffer to the XML parser.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker uploads, submits, or otherwise causes Docling to ingest a .tar.gz archive that contains a crafted METS XML file. The archive layout matches what the backend expects, so extraction succeeds. Once etree.fromstring() begins parsing, entity expansion consumes available memory until the process is killed or the host becomes unresponsive.

No verified public proof-of-concept code is available. Defenders can reference the Docling project repository and the CVE-2026-31248 advisory notes for technical context.

Detection Methods for CVE-2026-31248

Indicators of Compromise

  • Docling worker processes consuming abnormal amounts of resident memory shortly after archive ingestion.
  • Repeated out-of-memory (OOM) kills or process crashes in Docling service logs correlated with .tar.gz uploads.
  • METS XML payloads containing nested <!ENTITY> declarations or DTD blocks referencing other entities recursively.
  • Submitted archives with unusually small XML files that produce disproportionate parser runtime.

Detection Strategies

  • Inspect ingested XML files for <!DOCTYPE> declarations and nested entity definitions before they reach the parser.
  • Monitor Docling host metrics for sudden CPU saturation or memory spikes scoped to the parser process.
  • Alert on etree.fromstring() call traces that exceed a defined parse time threshold.
  • Correlate archive uploads with subsequent process termination events in container or systemd logs.

Monitoring Recommendations

  • Set per-process memory and CPU ceilings on Docling workers and capture telemetry when limits are hit.
  • Forward Docling application logs and host resource metrics to a centralized analytics platform for correlation.
  • Track the volume of .tar.gz submissions per source identity and flag anomalous bursts.

How to Mitigate CVE-2026-31248

Immediate Actions Required

  • Upgrade Docling to a release later than 2.61.0 that addresses the METS GBS backend parsing path.
  • Disable or restrict the METS GBS backend until the patched version is deployed.
  • Place Docling workers behind an ingestion proxy that rejects archives containing XML with DTD declarations.
  • Apply strict resource limits (cgroups, container quotas) so a single malicious document cannot exhaust the host.

Patch Information

The vulnerability is reported in Docling versions through 2.61.0. Refer to the Docling project repository for the current patched release and changelog entries that disable entity resolution in the METS GBS backend.

Workarounds

  • Configure the XML parser with resolve_entities=False and no_network=True, and reject input containing a DTD before parsing.
  • Pre-scan .tar.gz payloads and drop any contained XML that includes <!DOCTYPE or <!ENTITY declarations.
  • Run Docling in a sandboxed container with hard memory limits and automatic restart on OOM.
  • Rate-limit document submissions per tenant or user to reduce the blast radius of repeated DoS attempts.
bash
# Example hardened lxml parser configuration
# (illustrative remediation pattern, not vendor-supplied code)
from lxml import etree

parser = etree.XMLParser(
    resolve_entities=False,
    no_network=True,
    huge_tree=False,
    dtd_validation=False,
    load_dtd=False,
)
tree = etree.fromstring(xml_bytes, parser=parser)

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechDocling

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.07%

  • 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-776
  • Technical References
  • GitHub Project Repository

  • Notion CVE-2026-31248 Details
  • Related CVEs
  • CVE-2026-31247: Docling JATS XML Backend DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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