(0Day) Ultralytics Google Drive Download Path Traversal Remote Code Execution Vulnerability
Ultralytics does not properly validate a user-supplied path when handling downloads from Google Drive, so a crafted path can be used in file operations. An attacker could exploit this to run arbitrary code in the context of the current process, though the target must first visit a malicious page or open a malicious file.
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 full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Google Drive download handling joins an untrusted path into a file operation without validating or confining it to an intended directory.
Impact
An attacker could execute arbitrary code in the context of the current process, but only if the target visits a malicious page or opens a malicious file.
What the attacker needed
Victim visits a malicious page; or victim opens a malicious file
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a path traversal bug: a program takes a file path from outside input and uses it without checking it, so an attacker can point it somewhere it should not go. Here that lets the attacker write or reach files in a way that ends in running their own code on the machine. The victim has to be tricked into visiting a malicious page or opening a malicious file first.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.