---
id: "CVE-2026-118617"
kind: "vulnerability"
aliases: ["CVE-2026-118617"]
title: "Ultralytics: untrusted dataset cache file runs code when opened"
severity: "high"
cvss: 7.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["developer-workstation", "package", "python", "ultralytics"]
not_affected_if: ["unknown"]
published_at: "2026-10-28T17:18:28+00:00"
first_seen_at: "2026-10-28T17:34:10+00:00"
updated_at: "2026-10-28T17:36:17+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-118617", "first_seen_at": "2026-10-28T17:34:10+00:00"}]
---

# Ultralytics: untrusted dataset cache file runs code when opened

The Ultralytics library's load_dataset_cache_file function deserializes data from a user-supplied file without validation. An attacker who gets a user to open a malicious file or visit a malicious page can run code as that user.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- unknown

## Fix

- unknown

## Timeline

- 2026-10-28T17:34:10+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-118617

## From the sources

Ultralytics load_dataset_cache_file Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Ultralytics. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the load_dataset_cache_file function. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-30124.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
