CVE-2026-118615

Ultralytics torch_safe_load Command Injection Remote Code Execution Vulnerability

Published Oct 28, 2026 CVSS 3.0 · 7.8 High EPSS < 1% KEV · Not listed
Description
Ultralytics torch_safe_load Command Injection 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 torch_safe_load function. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-30122.

Analysis

AI-generated

Technical impact

The vulnerability resides in the torch_safe_load function, where a user-supplied string is unsafely passed to a system call without proper validation. An attacker can therefore craft input that injects commands, leading to arbitrary code execution in the context of the current user. The flaw is a classic command injection weakness identified as CWE‑78, and its consequence is that once triggered, the attacker gains full control over the affected system.

Affected Systems

The affected product is Ultralytics, as distributed by Ultralytics. Specific version information is not provided in the advisory, so all installations of the Ultralytics library that include the vulnerable torch_safe_load implementation are potentially impacted.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity, and the exploit requires user interaction—such as visiting a malicious page or opening a malicious file. Because the EPSS score is not available, the exact likelihood cannot be quantified, and the vulnerability is not listed in the CISA KEV catalog. Attackers would need to entice a user to supply the malicious input; once executed, it runs with the current user's privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Ultralytics release that includes the fix for the torch_safe_load validation issue.
  • If an update is not yet available, temporarily disable or exclude the torch_safe_load function from execution paths.
  • Use web content filtering to block malicious pages or malicious files that could trigger the vulnerable code.
  • Continue monitoring vendor advisories for an official patch and apply it as soon as it is released.

Generated by OpenCVE AI on October 28, 2026 at 18:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ultralytics
Ultralytics ultralytics
Vendors & Products Ultralytics
Ultralytics ultralytics
Type Values Removed Values Added
Description Ultralytics torch_safe_load Command Injection 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 torch_safe_load function. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-30122.
Title Ultralytics torch_safe_load Command Injection Remote Code Execution Vulnerability
Weaknesses CWE-78
References
Metrics cvssV3_0

{'score': 7.8, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
zdi
Published
Updated
Nov 5, 2026, 5:09 PM
Reserved
Oct 28, 2026, 4:53 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 5:18 PM
Modified
Nov 5, 2026, 5:17 PM