CVE-2026-44018: Docling: Unsafe Archive Extraction and XML Parsing in METS-GBS Backend

Published Jun 3, 2026
·
Updated

Impact The METS-GBS backend's XML parsing and the input document format detection lacked security controls, enabling: - XML External Entity (XXE) attacks to read local files or cause denial of service - Decompression bombs (zip bombs) to exhaust memory and disk space - Unbounded archive extraction consuming system resources

An attacker could craft malicious METS-GBS archives that, when processed, could read sensitive files, exhaust system resources, or cause application crashes.

Patches Fixed in version 2.91.0. The fix implements: - Secure XML parsing with resolveentities=False, loaddtd=False, and nonetwork=True - Configurable limits: 300 MB total extraction size, 10 MB per file, 1000 member count - Cumulative size tracking across all extractions - Early termination when limits are exceeded - Secure format detection of METS-GBS tar archives with detectmetsgbs() method: maximum file size (10 MB per file), maximum member count (1000 members), and exception handling to gracefully fail when limits are exceeded

Workarounds Avoid processing METS-GBS archives from untrusted sources. If necessary, pre-validate archives in an isolated environment with resource limits.

References - Fix release: v2.91.0

Other sources

Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.45.0 until 2.91.0, the METS-GBS backend's XML parsing and the input document format detection lacked security controls. An attacker could craft malicious METS-GBS archives that, when processed, could read sensitive files, exhaust system resources, or cause application crashes. This vulnerability is fixed in 2.91.0.

— MITRE

Affected Software

2 affected componentsFixes available
pip/docling>=2.45.0<2.91.0
2.91.0
Docling Docling Python>=2.45.0<2.91.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/docling to a version that resolves this vulnerability.

    Fixed in 2.91.0
  2. Upgrade

    Upgrade Docling METS-GBS backend to a version that resolves this vulnerability.

    Fixed in 2.91.0
  3. Configuration

    Configure secure XML parsing for METS-GBS by setting resolve_entities=False.

    METS-GBS XML parsing resolve_entities = False
  4. Configuration

    Configure secure XML parsing for METS-GBS by setting load_dtd=False.

    METS-GBS XML parsing load_dtd = False
  5. Configuration

    Configure secure XML parsing for METS-GBS by setting no_network=True.

    METS-GBS XML parsing no_network = True
  6. Configuration

    Set METS-GBS tar archive limits so the maximum file size is 10 MB per file.

    METS-GBS tar archive detection/extraction max_file_size_per_file = 10 MB
  7. Configuration

    Set METS-GBS tar archive limits so the maximum member count is 1000 members.

    METS-GBS tar archive detection/extraction max_member_count = 1000
  8. Configuration

    Set METS-GBS tar archive limits so total extraction size is limited to 300 MB across all extractions.

    METS-GBS tar archive detection/extraction max_total_extraction_size = 300 MB
  9. Compensating control

    Pre-validate METS-GBS archives in an isolated environment with resource limits.

Event History

Jun 3, 2026
Advisory Published
via GitHub·09:13 PM
Data Sourced
via GitHub·09:13 PM
DescriptionSeverityWeaknessAffected Software
Jun 26, 2026
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-44018?

The severity of CVE-2026-44018 is medium with a score of 5.5.

2

What types of attacks are associated with CVE-2026-44018?

CVE-2026-44018 is associated with XML External Entity (XXE) attacks, decompression bombs, and unbounded archive extraction.

3

How do I fix CVE-2026-44018?

To fix CVE-2026-44018, ensure that proper security controls are implemented in the XML parsing and input document format detection mechanisms.

4

What software is affected by CVE-2026-44018?

CVE-2026-44018 affects the backend of the METS-GBS software, particularly the pip/docling library.

5

What is the impact of exploiting CVE-2026-44018?

Exploiting CVE-2026-44018 can lead to unauthorized file access, denial of service, and resource exhaustion.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203