CVE-2026-105745

Docling: Plugin entry points are imported before the allow_external_plugins check

Published Oct 5, 2026 CVSS 3.1 · 6.7 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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).

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

Source ID Title
Github GHSA Github GHSA GHSA-9jxx-vjrv-h2rq Docling imports plugin entry points before the allow_external_plugins check
History
Type Values Removed Values Added
First Time appeared Docling
Docling docling
CPEs cpe:2.3:a:docling:docling:*:*:*:*:*:*:*:*
Vendors & Products Docling
Docling docling
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Docling-project
Docling-project docling
Vendors & Products Docling-project
Docling-project docling
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'}

Weaknesses
  • CWE-696

    Incorrect Behavior Order

  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 6, 2026, 2:48 PM
Reserved
Oct 5, 2026, 7:11 PM
Status
Analyzed
Published
Oct 5, 2026, 10:16 PM
Modified
Oct 7, 2026, 7:18 PM
Severity
Moderate
Public date
Oct 5, 2026, 9:29 PM