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 package | Versions | Reported by |
|---|---|---|
| docling-project docling | >= 2.45.0, < 2.91.0 | CVE List |
| docling (PyPI) | from 2.45.0 before 2.91.0 | GitHub Advisory Database, PyPA Advisory Database |
| docling docling | from 2.45.0 before 2.91.0 | NVD |
All scores
| GitHub_M | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
| PyPA Advisory Database | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
Classification
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, andno_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
- Fix release: v2.91.0
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44018 changed 2026-06-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r3xg-rg9j-67fv changed 2026-07-21 | CC-BY-4.0 |
| NVD | CVE-2026-44018 changed 2026-10-25 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2144 changed 2026-07-13 | CC-BY-4.0 |