Intel

AIKIDO-2026-297109

ultralytics-opencv-headless is vulnerable to Command Injection

Command Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 12, 2026

75

High Risk

This Affects:

PYTHONultralytics-opencv-headless
8.3.242 - 8.4.116
Fixed in 8.4.117
Are you affected? Scan for Free

TL;DR

The check_requirements() utility auto-installs missing Python dependencies by building a shell command string and running it with the system shell enabled. Requirement strings that originate from untrusted sources such as loaded model files are only wrapped in double quotes, so shell command-substitution sequences embedded in a requirement are still interpreted and executed. This lets externally influenced requirement values run arbitrary operating system commands during automatic dependency installation. The fix passes the package and command arguments as separate subprocess argument-list elements instead of interpolating them into a shell string.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you load untrusted model files or pass externally influenced requirement strings while automatic dependency installation (AUTOINSTALL) is enabled.

Background info

ultralytics-opencv-headless is vulnerable to Command Injection in versions 8.3.242 - 8.4.116.

How to fix this

Upgrade the ultralytics-opencv-headless library to the patch version.