# CVE-2026-118615: Ultralytics torch_safe_load command injection remote code execution

Source: https://junglewise.ai/threats/cve-2026-118615-ultralytics-torch-safe-load-command-injection-remote-code  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-28. Updated: 2026-10-28  
License: CC BY 4.0 with a link back

CVE-2026-118615 · Severity: high · CVSS 7.8 · Published 2026-10-28

Ultralytics is a computer vision library used for AI model training and deployment. This vulnerability in the torch_safe_load function allows attackers to execute arbitrary code on systems running the library if a user opens a malicious file or visits a malicious page. An attacker could gain full control of the affected system, leading to data theft, ransomware installation, or lateral movement within a network.

Technologies: [Ultralytics](https://junglewise.ai/threats/technologies/ultralytics-ultralytics). Vendors: [Ultralytics](https://junglewise.ai/threats/vendors/ultralytics).

## Quick answers

**Is CVE-2026-118615 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-118615 being exploited in the wild.

**How severe is CVE-2026-118615?** High severity, with a CVSS score of 7.8, published 28 October 2026.

**Which products and versions are affected?** Ultralytics Ultralytics.

**Is there a fix for CVE-2026-118615?** No fixed version is recorded yet. Restrict user interaction with untrusted files or webpages until patches are available, particularly files containing serialized models that would be processed by torch_safe_load. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-118615 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-118615?** Check whether you run Ultralytics. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix


Restrict user interaction with untrusted files or webpages until patches are available, particularly files containing serialized models that would be processed by torch_safe_load.

## Technical details

The torch_safe_load function in Ultralytics lacks proper validation of user-supplied strings before passing them to system calls, enabling command injection. The vulnerability requires user interaction (opening a malicious file or visiting a malicious webpage) and executes with the privileges of the current user. A successful exploit grants arbitrary code execution on the affected system.

## Affected products

- Ultralytics Ultralytics

## Timeline

- 2026-06-18: disclosed: Vulnerability reported to vendor
- 2026-10-28: advisory: Coordinated public release of advisory

## References

- [https://www.zerodayinitiative.com/advisories/ZDI-26-814/](https://www.zerodayinitiative.com/advisories/ZDI-26-814/)

## Related threats

- [Ultralytics Google Drive download path traversal remote code execution](https://junglewise.ai/threats/cve-2026-118619-ultralytics-google-drive-download-path-traversal-remote-code)
- [Ultralytics parse_model code injection remote code execution](https://junglewise.ai/threats/cve-2026-118618-ultralytics-parse-model-code-injection-remote-code-execution)
- [Ultralytics load_dataset_cache_file deserialization of untrusted data](https://junglewise.ai/threats/cve-2026-118617-ultralytics-load-dataset-cache-file-deserialization-of-untrusted)
- [Ultralytics parse_model code injection remote code execution](https://junglewise.ai/threats/cve-2026-118616-ultralytics-parse-model-code-injection-remote-code-execution)
- [Ultralytics check_det_dataset code injection remote code execution](https://junglewise.ai/threats/cve-2026-118614-ultralytics-check-det-dataset-code-injection-remote-code)
