Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInstall malicious package declaring docling entry point
-
DeliveryUser starts Docling with external plugins disabled
-
ExploitFactory calls load_setuptools_entrypoints before filter
-
ExecutionMalicious module import-time code executes
-
ImpactArbitrary code runs in Docling process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Incorrect behavior order
|
| Exploitation Conditions | Requires a third-party or compromised distribution that registers an entry point in the Docling 'docling' entry-point group to already be installed in the same Python environment, and Docling to be started so the factory's load_from_plugins runs. The flaw triggers even when allow_external_plugins=false, because load_setuptools_entrypoints() imports every registered module before the namespace filter is applied. Limiting factors: local access needed to install/register the malicious package (a supply-chain prerequisite), the process must execute Docling (UI:R), and only versions 2.27.0 through <2.131.0 are affected. There is no remote network exploitation path. |
| Impact | Signals conflict sharply between theoretical and practical severity. The CVSS 3.1 base score is 7.8 (HIGH) with full C:H/I:H/A:H impact, reflecting that the flaw yields arbitrary import-time code execution inside the Docling process. However, every real-world-exploitation signal is low: EPSS is 0.11% (1st percentile), there is no CISA KEV listing, and CISA's SSVC decision framework rates Exploitation as 'none' and Automatable as 'no' while confirming Technical Impact as 'total'. The CVSS vector itself tempers the score - AV:L (local) and UI:R mean this is not a remote, drive-by issue. Critically, the vulnerability is a security-control bypass that only matters AFTER an attacker has already placed a malicious or compromised package (registering a 'docling' entry point) into the same Python environment - a supply-chain precondition that the CVSS vector does not fully capture. In practice this is a defense-in-depth weakness (allow_external_plugins=false fails to prevent import, and the namespace filter misleadingly reports the plugin as not loaded) rather than a high-urgency, widely-exploitable vulnerability. The low EPSS and SSVC 'none' are consistent with each other and with the absence of a public exploit, so this should be patched on a normal maintenance cadence rather than treated as an emergency. |
| Exploit ScenarioDerived | An attacker publishes or compromises a Python package that declares an entry point in the Docling 'docling' group and gets it installed in a victim's environment (e.g., via a typosquatted or trojanized dependency). When the victim subsequently runs Docling - even with allow_external_plugins=false - the factory imports the attacker's module and its import-time code executes in the Docling process. No public weaponized exploit exists; the fixing PR includes a test harness demonstrating the import-even-when-disallowed behavior. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 07, 2026
Import-time code execution in Docling 2.27.0 through 2.131.0 lets any distribution already present in the same Python environment that registers an entry point in the 'docling' group run arbitrary code as soon as Docling's plugin factories initialize - even when allow_external_plugins is set to false, because the plugin manager imports every registered module before the namespace allow-list is applied and then misleadingly logs that the plugin was skipped. The assessed vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) confirms this is a local, supply-chain-style prerequisite: an attacker must first get a third-party or compromised package installed and registered, and Docling must then be started by a user, so there is no remote network exploitation path. No public exploit code or active exploitation is known at time of analysis (EPSS 0.11%, percentile 1%; CISA SSVC exploitation: none), and the vendor has shipped a fix in 2.131.0.
Earlier versions of this analysis (1)
Docling versions 2.27.0 through 2.130.x import every module registered in the 'docling' setuptools entry-point group at startup, even when the allow_external_plugins setting is explicitly disabled, so a third-party or compromised Python package that is already installed in the same environment can execute arbitrary import-time code whenever Docling launches. The flaw is an order-of-operations error (CWE-696): plugin factories in docling/models/factories/base_factory.py call load_setuptools_entrypoints() before honoring the allow_external_plugins flag, and the subsequent namespace filter then misleadingly logs that the plugin was not loaded, masking the execution. Rated CVSS 6.7 (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H), exploitation is local, complex, and contingent on a supply-chain prerequisite - the attacker must first get a malicious distribution installed and must rely on Docling being invoked; no public exploit code or confirmed active exploitation was identified at time of analysis, and the vendor-released fix is version 2.131.0.
RemediationAI
Vendor-released patch: 2.131.0 - upgrade docling and, where present, docling-slim to 2.131.0 or later, which reorders entry-point handling so disallowed plugin modules are never imported (see the advisory https://github.com/docling-project/docling/security/advisories/GHSA-9jxx-vjrv-h2rq, the fix PR https://github.com/docling-project/docling/pull/4413, commit 0f443b3786e98688a2da3b7c8f56fe5e46af876c, and the release https://github.com/docling-project/docling/releases/tag/v2.131.0). Until upgrading, the only effective mitigation is to remove the attack prerequisite, since setting allow_external_plugins=false does not help on vulnerable versions: audit the Python environment for unexpected distributions exposing the 'docling' entry point (for example by listing importlib.metadata.entry_points(group='docling') and reviewing the owning package metadata), and uninstall or quarantine anything untrusted - the trade-off being loss of legitimate third-party OCR/model plugins. Running Docling inside a locked-down virtual environment, container, or least-privilege service account limits post-exploitation impact at the cost of operational flexibility, and pinning or hashing dependencies in a private index with install-time review reduces the chance of a malicious package being pulled in at all, though it will not stop an already-installed one. Because the trigger requires user interaction (UI:R per the assessed vector), avoiding interactive Docling runs in environments that mix trusted and untrusted packages adds a further, though partial, safeguard.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Docling discovers model backends through Python packaging entry points: its factories in docling/models/factories/base_factory.py drive a pluggy plugin manager and call load_setuptools_entrypoints('docling'), which resolves and imports every module advertised under the 'docling' entry-point group. The root cause is CWE-696 (Incorrect Behavior Order): the import (and therefore any import-time side effects such as module-level code, class decorators, or registration hooks) happens before the code evaluates the allow_external_plugins setting, so the security decision is made too late to prevent execution. The subsequent filter only inspects the already-imported module's name and emits a warning that the plugin 'will not be loaded', giving a false sense of containment. The upstream fix restructures the loop to enumerate entry_points(group=plugin_name) from importlib.metadata, skip already-registered names, compare entry_point.module against the allow-list first, and only then call entry_point.load() and plugin_manager.register(); a regression test (tests/test_factory_plugins.py) asserts the external module never enters sys.modules when plugins are disallowed. Note that the CVE's 'Information Disclosure' tag understates the actual consequence - the CPE data (docling-project:docling and docling-project:docling-slim) and the assessed impact of high confidentiality, integrity, and availability loss reflect arbitrary code execution in the Docling process, whose privileges govern the blast radius.
Know when Docling Slim gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Local, deterministic import-time code execution once a malicious entry-point package is installed; UI:R because Docling must be started, S:U as code runs within the same process authority, full C/I/A from arbitrary execution.
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
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.
Blast Radius
ecosystem impact- 2 pypi packages depend on docling-slim (1 direct, 1 indirect)
Ecosystem-wide dependent count for version 2.92.0.
Technical POC Analysis
Bug class: CWE-696 (Incorrect Behavior Order), with the advisory also tagging CWE-829.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Docling, a document parsing library used in AI and data processing pipelines, contains an import-time code execution vulnerability (CVE-2026-105745) affecting versions 2.27.0 through 2.131.0. This flaw allows a malicious or compromised Python package in the same environment to execute arbitrary code when Docling initializes, bypassing the plugin allow-list. Organizations using Docling for sensitive document workflows should prioritize patching because a successful exploit could lead to unauthorized access, data theft, or lateral movement within the environment; however, no public exploit identified at time of analysis.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Docling Slim
View allLocal file disclosure in Docling allows crafted HTML to embed readable files from the host filesystem into the rendered
Docling 2.94.0 through 2.131.x allows an attacker-supplied LaTeX/TikZ document to read files accessible to the converter
Unbounded rowspan/colspan attribute handling in Docling 2.0.0 through 2.130.x lets a deliberately crafted document force
Server-side request forgery in Docling 2.91.0 through 2.131.x lets an attacker-supplied document reach internal services
Docling 2.83.0 through 2.130.x ignores the enable_remote_services=False policy when OCR is configured with KserveV2OcrOp
Docling's HTML backend forwards operator-configured HTTP headers - bearer tokens, API keys, cookies set via HTMLBackendO
Processing a crafted document with Docling (or the docling-slim distribution) versions 2.45.0 through 2.130.x can exhaus
Information disclosure in Docling (and the docling-slim distribution) versions 2.16.0 through 2.130.x lets an attacker e
EUVD-2026-92805
GHSA-9jxx-vjrv-h2rq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB