CVE-2026-24009: docling-core Remote Code Execution Vulnerability Due to Unsafe PyYAML Usage

docling-core Updated 22 Jan 2026

Summary

22/01/2026
Yes i
High
8.1

CVE-2026-24009: docling-core vulnerable to Remote Code Execution via unsafe PyYAML usage. Affects docling-core versions >= 2.21.0, < 2.48.4. Fixed in 2.48.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

docling-core is a Python library designed for managing and processing documentation in a structured format. It allows users to load, manipulate, and save documents in various formats, including YAML. However, certain versions of docling-core are vulnerable to a Remote Code Execution (RCE) vulnerability due to improper handling of untrusted YAML data when using an outdated version of the PyYAML library.

Vulnerability Detail

The vulnerability arises from the use of PyYAML versions earlier than 5.4 in docling-core versions between 2.21.0 and 2.48.4. When the method docling_core.types.doc.DoclingDocument.load_from_yaml() is called with untrusted YAML data, it can lead to arbitrary code execution, allowing attackers to execute malicious code on the server. This vulnerability is classified under CWE-502, which pertains to deserialization of untrusted data.

How To Fix

Latest published version: 3.0.0 as of 23 Oct 2026

pip install --upgrade "docling-core==3.0.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.48.4

This is the first release that contains the fix.

pip install --upgrade "docling-core==2.48.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate upgrading is not feasible, ensure that the installed version of PyYAML is 5.4 or greater. You can check your PyYAML version with the command: pip show pyyaml. If necessary, upgrade it using: pip install --upgrade pyyaml.

Conclusion

In summary, the docling-core package is vulnerable to a Remote Code Execution attack due to unsafe usage of the PyYAML library in specific versions. Users are advised to upgrade to version 2.48.4 or later to mitigate this risk. Alternatively, ensuring that PyYAML is updated to version 5.4 or greater can serve as a temporary workaround.

See every vulnerability recorded for docling-core →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.1, indicating a high severity level.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Failing to address this vulnerability could allow attackers to execute arbitrary code on your server, potentially leading to data breaches or system compromise.

Yes, ensure that you are using PyYAML version 5.4 or greater to mitigate the risks associated with this vulnerability.

Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just the Pipfile.lock. It helps you stay informed about potential risks in your applications.

Related vulnerabilities

Recent vulnerabilities recorded for docling-core.

How To Fix

Latest published version: 3.0.0 as of 23 Oct 2026

pip install --upgrade "docling-core==3.0.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.48.4

This is the first release that contains the fix.

pip install --upgrade "docling-core==2.48.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback