Skip to main content

Docling EUVDEUVD-2026-92805

| CVE-2026-105745 HIGH
Incorrect Behavior Order (CWE-696)
2026-10-05 GitHub_M GHSA-9jxx-vjrv-h2rq
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Install malicious package declaring docling entry point
  2. Delivery
    User starts Docling with external plugins disabled
  3. Exploit
    Factory calls load_setuptools_entrypoints before filter
  4. Execution
    Malicious module import-time code executes
  5. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Oct 05, 2026 - 22:16 CVSS 6.7

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

docling 2.27.0, < 2.131.0
docling-slim 2.27.0, < 2.131.0

Affected Packages

pypi docling fix: 2.131.0
pypi docling-slim fix: 2.131.0

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

Vendor (GitHub_M) PRIMARY MEDIUM
NVD 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 6.7 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Oct 07, 2026 - 19:29 vuln.today
v2 - CVSS changed
Severity Changed
Oct 07, 2026 - 19:22 NVD
MEDIUM HIGH
CVSS changed
Oct 07, 2026 - 19:22 NVD
6.7 (MEDIUM) 7.8 (HIGH)
Patch available
Oct 05, 2026 - 23:02 EUVD

DescriptionNVD

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
popular Python document-parsing library in AI/RAG pipelines, not universally deployed
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy