Description
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.
Published: 2026-10-05
Score: 6.7 Medium
EPSS: n/a
KEV: No
Impact: Potential code execution due to premature plugin import
Action: Patch
AI Analysis

Impact

Docling’s plugin factory loads setuptools entry points before respecting the allow_external_plugins setting, causing all registered modules in the Docling entry‑point group to be imported even when external plugins are supposedly disabled. A malicious or compromised third‑party package can thus inject code that runs at application startup, leading to local or remote code execution depending on how Docling is deployed. The flaw is a consequence of improper input validation and authorisation, as reflected by the associated CWE identifiers.

Affected Systems

The vulnerability affects the Docling project’s docling and docling-slim packages for all releases from version 2.27.0 up through 2.131.0. Upgrading past 2.131.0 removes the issue, as the plugin import logic has been corrected.

Risk and Exploitability

The CVSS v3 score is 6.7, indicating a moderate severity. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog. Attackers would need to introduce a bad package into the environment where Docling runs; the attack vector is local deployment and potentially remote if Docling is executed as a service in a hostile environment. The flaw’s existence in the plugin loader gives an attacker a reliable path to code execution, aligning with CWE‑696 (Improper Control of Generation of Code) and CWE‑829 (Improper Restriction of Operations within the Code Execution Context).

Generated by OpenCVE AI on October 5, 2026 at 22:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Docling to version 2.131.0 or later, where the plugin import order has been corrected.
  • If upgrading is not immediately possible, remove or block any third‑party packages registered under the Docling entry‑point group before starting the application.
  • Validate the trustworthiness of all installed packages and monitor for unexpected entry points that might introduce malicious code.

Generated by OpenCVE AI on October 5, 2026 at 22:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 05 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Docling-project
Docling-project docling
Vendors & Products Docling-project
Docling-project docling

Mon, 05 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Docling: Plugin entry points are imported before the allow_external_plugins check
Weaknesses CWE-696
CWE-829
References
Metrics cvssV3_1

{'score': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Docling-project Docling
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-05T21:29:23.561Z

Reserved: 2026-10-05T19:11:07.946Z

Link: CVE-2026-105745

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-05T22:16:57.330

Modified: 2026-10-05T22:16:57.330

Link: CVE-2026-105745

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-05T22:30:19Z

Weaknesses
  • CWE-696

    Incorrect Behavior Order

  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere