Skip to main content

Docling CVE-2026-44020

| EUVDEUVD-2026-39004 HIGH
Improper Restriction of Recursive Entity References in DTDs (CWE-776)
2026-06-03 https://github.com/docling-project/docling GHSA-m88r-rg27-5xfg
7.5
CVSS 3.1 · Vendor: https://github.com/docling-project/docling
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify service ingesting USPTO XML
  2. Delivery
    Craft malicious patent with external entities
  3. Exploit
    Submit file via ingestion endpoint
  4. Execution
    Docling invokes xml.sax.parseString
  5. Persist
    Parser resolves external entity or expands recursively
  6. Impact
    Exfiltrate file contents, SSRF internal services, or exhaust resources

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML entity recursion limits
Exploitation Conditions

Exploitation requires that the target application invoke Docling's USPTO patent backend (ICE v4.x, Grant v2.5, or Application v1.x parsers) on attacker-supplied XML on docling versions >= 2.13.0 and < 2.74.0; no authentication, user interaction, or special configuration is needed beyond the application accepting USPTO-format XML input. Exploitation is limited where Docling is only fed trusted internal patent corpora, where the parsing worker is sandboxed without outbound network access (neutralizing SSRF) and without sensitive file readability (neutralizing file disclosure), or where deployments use Docling exclusively for non-USPTO formats so the vulnerable code path is never reached.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, score 7.5) reflects only the denial-of-service impact via entity expansion and is reachable network-side with no privileges or interaction; however, the description and CWE-776 indicate that confidentiality (arbitrary file read) and integrity-adjacent SSRF impacts are also achievable, so the scored CVSS understates real-world impact for deployments that expose Docling to untrusted patent XML. There is no EPSS, KEV, or POC signal in the provided data, so this should be treated as no public exploit identified at time of analysis rather than active exploitation. Realistic risk is concentrated in services that automatically ingest USPTO-format XML from external submitters (patent processing pipelines, document-ingestion SaaS, RAG ingestion of third-party patents); installations that only process trusted internal corpora face materially lower risk. Note: the C:N/I:N rating in the CVSS vector appears inconsistent with the advisory's explicit file-read and SSRF claims - defenders should treat the impact as higher than the headline score suggests.

Exploit ScenarioDerived

An attacker submits a malicious USPTO-formatted XML patent file to any service that uses a vulnerable docling release to parse incoming patent documents (for example, an ingestion endpoint of a patent-analytics or RAG pipeline). The crafted file contains a DOCTYPE with external entities pointing at file:///etc/passwd or an internal URL, or a deeply nested entity-expansion payload, causing the worker to read local files, issue attacker-directed HTTP requests to internal services, or exhaust memory and CPU. No exploit code is published, but the technique is well-known and trivially reproducible from standard XXE primers.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 03, 2026

XML External Entity (XXE) injection in Docling's USPTO patent backend allows remote attackers to trigger denial of service, read arbitrary server files, or perform SSRF by submitting crafted patent XML to vulnerable versions (>=2.13.0, <2.74.0). The flaw stems from use of Python's unsafe xml.sax.parseString() across the ICE v4.x, Grant v2.5, and Application v1.x parsers. No public exploit identified at time of analysis, but the fix is publicly documented in the vendor advisory and a working patched release is available.

RemediationAI

Vendor-released patch: upgrade docling to 2.74.0 or later (pip install --upgrade 'docling>=2.74.0'); the fix replaces xml.sax with defusedxml.sax and disables external general and parameter entities while preserving DTD support needed by USPTO files, as documented at https://github.com/docling-project/docling/releases/tag/v2.74.0 and commit 576bada. If immediate upgrade is not possible, stop processing USPTO patent XML from untrusted sources (the vendor's stated workaround) and route any required ingestion through a sandboxed worker with no outbound network egress and read-only filesystem access to neutralize SSRF and file-read impact; additionally, apply per-job memory and CPU limits (for example via cgroups, ulimit, or container resource limits) to bound the Billion Laughs DoS, accepting that legitimate large patents may be rejected. Network-layer egress filtering blocking the worker from reaching internal metadata endpoints (169.254.169.254) and internal RFC1918 ranges further reduces SSRF blast radius until the upgrade lands.

Affected VersionsENISA

docling 2.13.0, < 2.74.0

Affected Packages

pypi docling fix: 2.74.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Docling is a Python document-processing library (pip/docling) that ingests multiple document formats, including USPTO patent XML. The vulnerable code path calls the standard library's xml.sax.parseString() on attacker-controlled XML without disabling external entity resolution, which maps to CWE-776 (Improper Restriction of Recursive Entity References, 'Billion Laughs'). Because xml.sax in CPython honors external general entities and parameter entities by default, a malicious DOCTYPE/ENTITY block can reference local files (file://), remote URLs (http://), or recursively expanded entities, yielding the classic XXE triad of file disclosure, SSRF, and resource-exhaustion DoS. The fix replaces the parser with defusedxml.sax.make_parser() and sets feature_external_ges=False and feature_external_pes=False while still allowing DTD declarations, which the USPTO format legitimately requires.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/docling-project/docling) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 9.4 HIGH

Primary rating from Vendor (https://github.com/docling-project/docling).

CVSS VectorVendor: https://github.com/docling-project/docling

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Impact

The USPTO patent XML parser used the standard xml.sax.parseString() without protection against XML External Entity (XXE) attacks. An attacker could craft malicious USPTO patent XML files with external entity references that could:

  • Read arbitrary files from the server filesystem
  • Perform Server-Side Request Forgery (SSRF) attacks
  • Cause denial of service through entity expansion (Billion Laughs attack)

The vulnerability affects three USPTO patent format parsers: ICE (v4.x), Grant v2.5, and Application v1.x.

Patches

Fixed in version 2.74.0. The parser now uses defusedxml.sax.make_parser() with secure configuration that blocks external entity resolution (feature_external_ges=False, feature_external_pes=False) while allowing DTD declarations required by USPTO files. This prevents XXE attacks while maintaining compatibility with the USPTO XML format.

Workarounds

Avoid processing USPTO patent XML files from untrusted sources. Implement resource limits (memory, CPU time) when processing patent documents.

References

Executive ViewAI

Why It Matters

The Docling patent processing backend has a high-severity XML injection vulnerability affecting versions 2.13.0-2.73.x, enabling remote attackers to extract confidential files, disrupt service availability, or pivot into internal systems through crafted patent XML payloads. Organizations using Docling for patent data workflows face immediate risk of data exfiltration and operational disruption without urgent remediation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy