Docling: Unsafe Zip Extraction in EasyOCR Model Download
GHSA-cjqg-rq2h-2fvj · CVE-2026-44017 · PYSEC-2026-2143
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
Impact
In versions < 2.91.0, The EasyOCR model download functionality extracted ZIP archives without validating member paths, enabling Zip Slip attacks. If an attacker could compromise the model download source (via supply chain attack, DNS spoofing, or MITM), they could write arbitrary files to any location writable by the process, potentially achieving:
- Remote code execution by overwriting Python files or system binaries
- Persistent backdoors by modifying startup scripts or SSH keys
- Data corruption or system compromise
Patches
Fixed in version 2.91.0. The extraction process now validates each archive member path using os.path.realpath() to ensure it remains within the target directory, raising a SecurityError for any path traversal attempts.
Workarounds
Ensure model downloads occur over secure, authenticated channels. Use integrity verification (checksums) for downloaded models. Run the application with minimal file system permissions.
References
- Fix release: v2.91.0
References
- WEB https://github.com/docling-project/docling/security/advisories/GHSA-cjqg-rq2h-2fvj
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-44017
- WEB https://access.redhat.com/errata/RHSA-2026:60520
- WEB https://access.redhat.com/security/cve/CVE-2026-44017
- WEB https://bugzilla.redhat.com/show_bug.cgi?id=2492448
- PACKAGE https://github.com/docling-project/docling
- WEB https://github.com/docling-project/docling/releases/tag/v2.91.0
- WEB https://github.com/pypa/advisory-database/tree/main/vulns/docling/PYSEC-2026-2143.yaml
- WEB https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44017.json
Ready to move
Start Securing
Free, no credit card | First findings in minutes