Docling
Docling: Plugin entry points are imported before the allow_external_plugins check
Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.27.0 until 2.131.0, Docling plugin factories in docling/models/factories/base_factory.py call load_setuptools_entrypoints() before applying the allow_external_plugins setting, so every module registered in the Docling entry-point group is imported even when external plugins are disabled. An installed third-party or compromised package can therefore execute import-time code when Docling starts, while the subsequent namespace filter misleadingly reports that the plugin was not loaded. This issue is fixed in 2.131.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.27.0, < 2.131.0
Fixed in 2.131.0
- >= 2.27.0, < 2.131.0
Fixed in 2.131.0
Mitigation
Upgrade docling to 2.131.0 or later.
Upgrade docling-slim to 2.131.0 or later.
References
- Vendor advisory github.com/docling-project/docling/security/ad…
- Patch github.com/docling-project/docling/pull/4413
- Patch github.com/docling-project/docling/commit/0f44…
1 more
- Release notes github.com/docling-project/docling/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.