Skip to main content
Vulnerability Database/CVE-2026-105745

CVE-2026-105745: Docling Plugin Loading RCE Vulnerability

CVE-2026-105745 is a remote code execution flaw in Docling that allows malicious plugins to execute code during import, even when external plugins are disabled. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105745 Overview

CVE-2026-105745 affects Docling, a document processing library that parses diverse formats and integrates with the generative AI ecosystem. The vulnerability exists in versions 2.27.0 through 2.130.x and is fixed in 2.131.0. Docling plugin factories in docling/models/factories/base_factory.py call load_setuptools_entrypoints() before applying the allow_external_plugins setting. 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 execute import-time code when Docling starts, while the namespace filter misleadingly reports that the plugin was not loaded.

Critical Impact

Any installed Python package registering a Docling entry point can execute arbitrary code when Docling initializes, bypassing the allow_external_plugins=False safeguard [CWE-696].

Affected Products

  • Docling versions 2.27.0 through 2.130.x
  • Python environments with third-party packages registering docling entry points
  • Applications and pipelines embedding Docling for document processing

Discovery Timeline

  • 2026-10-05 - CVE-2026-105745 published to NVD
  • 2026-10-07 - Last updated in NVD database
  • Fix released - Docling 2.131.0 published with patch commit 0f443b3

Technical Details for CVE-2026-105745

Vulnerability Analysis

The flaw is an incorrect behavior order issue [CWE-696] in Docling's plugin factory. During startup, the factory invokes pluggy's load_setuptools_entrypoints() to discover plugins registered under the Docling entry-point group. Python's entry-point loading mechanism imports each referenced module to resolve the plugin object. Only after this import step does the factory apply the allow_external_plugins filter, which uses namespace matching to exclude third-party plugins from the active registry.

Because imports have already executed, any code placed at module scope in a registered package runs regardless of the allow-list decision. The subsequent namespace filter reports that the external plugin was not loaded, which hides the fact that attacker-controlled code already ran in the host process.

Root Cause

The root cause is operation ordering. The factory enforces the allow_external_plugins policy after calling load_setuptools_entrypoints(), not before. Entry-point discovery and import must occur before any name-based allow-list check for that check to prevent code execution. The misleading log message about the plugin being skipped compounds the issue by suppressing operator suspicion.

Attack Vector

Exploitation requires a malicious or compromised Python package to be installed in the same environment as Docling and to register an entry point in the Docling plugin group. Supply chain compromise, typosquatting, or a dependency confusion attack against a transitive dependency are plausible delivery paths. The CVSS vector AV:L/AC:L/PR:N/UI:R reflects that a local package install and subsequent user action to run a Docling-based tool are required, but no privileges are needed on the target.

python
# Patch excerpt from docling/models/factories/base_factory.py
 import enum
 import logging
 from abc import ABCMeta
+from importlib.metadata import entry_points
 from typing import Generic, Optional, Type, TypeVar
 
 from pluggy import PluginManager

The patch introduces importlib.metadata.entry_points so the factory can enumerate registered entry points by name and apply the allow_external_plugins filter before importing any external module. Source: GitHub commit 0f443b3.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-105745

Indicators of Compromise

  • Unexpected Python packages in the environment that declare entry points in the docling group under their pyproject.toml or setup.py.
  • Log entries from Docling stating an external plugin was skipped despite the plugin's package being present and importable.
  • Outbound network connections or child processes originating from Python interpreters shortly after Docling startup.

Detection Strategies

  • Audit installed Python distributions for Docling entry points using importlib.metadata.entry_points(group="docling") across all production environments.
  • Compare the resolved Docling version against the fixed release 2.131.0 in software composition analysis tooling.
  • Correlate process telemetry showing Python runtimes importing packages that are not listed in approved dependency manifests.

Monitoring Recommendations

  • Monitor dependency manifests and lockfiles in CI for new or unexplained packages that register Docling entry points.
  • Alert on Python processes spawning unexpected child processes or opening outbound connections during application startup.
  • Track package install events on build servers and workstations where Docling is used.

How to Mitigate CVE-2026-105745

Immediate Actions Required

  • Upgrade Docling to version 2.131.0 or later across all applications, pipelines, and container images.
  • Inventory environments running Docling 2.27.0 through 2.130.x and prioritize those with broad third-party dependency surfaces.
  • Review installed packages for unexpected entry points in the docling group and remove any that are not required.

Patch Information

The fix is included in Docling 2.131.0, released via pull request #4413 and tracked under GHSA-9jxx-vjrv-h2rq. The patch enumerates entry points with importlib.metadata and applies the allow_external_plugins filter before any external module import. See the v2.131.0 release notes for full details.

Workarounds

  • Pin Docling and its dependency tree in a lockfile and install packages only from a vetted internal index until the upgrade is deployed.
  • Run Docling in an isolated virtual environment that contains only required dependencies, reducing the chance that an unrelated malicious package registers a Docling entry point.
  • Use container images built from minimal bases that exclude optional Python packages not needed for document processing.
bash
# Upgrade Docling to the patched release
pip install --upgrade "docling>=2.131.0"

# Enumerate packages registering Docling entry points for review
python -c "from importlib.metadata import entry_points; [print(ep.name, ep.value, ep.dist.name) for ep in entry_points(group='docling')]"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.