CVE-2026-44018
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-r3xg-rg9j-67fvPYSEC-2026-2144

Description

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.

Affected

Product or packageVersionsReported by
docling-project docling>= 2.45.0, < 2.91.0CVE List
docling (PyPI)from 2.45.0 before 2.91.0GitHub Advisory Database, PyPA Advisory Database
docling doclingfrom 2.45.0 before 2.91.0NVD

All scores

GitHub_M5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
GitHub5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
PyPA Advisory Database7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

Classification

CWE-409CWE-611CWE-776

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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 resolve_entities=False, load_dtd=False, and no_network=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 _detect_mets_gbs() 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
NVD (es)

Docling simplifica el procesamiento de documentos al analizar diversos formatos y al proporcionar integraciones con el ecosistema de IA generativa. Desde la versión 2.45.0 hasta la 2.91.0, el análisis XML del backend de METS-GBS y la detección del formato del documento de entrada carecían de controles de seguridad. Un atacante podría crear archivos METS-GBS maliciosos que, al ser procesados, podrían leer archivos sensibles, agotar los recursos del sistema o provocar caídas de la aplicación. Esta vulnerabilidad está corregida en la versión 2.91.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-44018 changed 2026-06-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-r3xg-rg9j-67fv changed 2026-07-21CC-BY-4.0
NVDCVE-2026-44018 changed 2026-10-25Public domain
PyPA Advisory DatabasePYSEC-2026-2144 changed 2026-07-13CC-BY-4.0