Unsloth Studio RCE Flaw Lets Malicious Hugging Face Models Execute Code
A patched flaw in Unsloth Studio let malicious Hugging Face models execute code when users selected them in the browser interface.
Overview
A security flaw in Unsloth Studio allowed malicious code to run when a user selected a model from Hugging Face. The issue occurred because the software trusted remote code by default during a simple metadataInformation that describes a file or message, such as when it was made, who sent it, or where check. This meant that just picking a model could execute hidden Python files without the user starting any training or inferenceRunning a trained artificial intelligence model on new input to generate an answer or prediction tasks. The vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend affected the standard version of the software, which is widely used to fine-tune large language modelsAn AI system trained on huge amounts of text to generate, summarize, translate, or write code. Because the code ran with the user's permissionsThe specific rights granted to an account or app to read, write, or run files and services, it could access sensitive data like cloud credentialsAccess keys, tokens, or login secrets that grant control over cloud servers and storage and SSH keysA cryptographic key pair used to sign in to remote servers over SSH without a password. Users running Studio must upgrade to version 2026.6.9 to fix the problem.
Terms in this story
- metadata
- Information that describes a file or message, such as when it was made, who sent it, or where. Even when the body of a message is encrypted, network metadata reveals who talked to whom and when, and document metadata in a leaked PDF can accidentally name its author. Security+ objective 4.9 lists the term
- inference
- Running a trained artificial intelligence model on new input to generate an answer or prediction. Training builds the AI model once, while inference happens every time a user sends a prompt to a chatbot, which is where prompt injection and data leaks occur.
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- large language models
- An AI system trained on huge amounts of text to generate, summarize, translate, or write code. Security news covers large language models both when defenders use them to review code and when attackers try to trick chatbots into leaking private company documents.
- permissions
- The specific rights granted to an account or app to read, write, or run files and services. When a mobile app or browser extension asks for broad permissions, such as reading every web page you visit, a malicious update can abuse those rights to steal passwords.
- cloud credentials
- Access keys, tokens, or login secrets that grant control over cloud servers and storage. Attackers scan public code repositories and developer laptops for cloud credentials so they can spin up cryptominers or download company databases.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- SSH keys
- A cryptographic key pair used to sign in to remote servers over SSH without a password. Software engineers store a private SSH key on their laptop and place the matching public key on cloud servers, making stolen SSH keys a prime target for infostealers.
- patched
- A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- open-source
- Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.
- configuration
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"A now-patched vulnerability in Unsloth Studio allowed a malicious Hugging Face model repository to execute Python code..." Found by reading the article; these exact words are in it - Who is affected: "...users running Studio..."
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"Unsloth Studio RCE Flaw Lets Malicious Hugging Face Models Execute Code..." Found in the headline - Security+ 2.5 Explain the purpose of mitigation techniques used to secure the enterprise.
"A now-patched vulnerability in Unsloth Studio allowed a malicious..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"A now-patched vulnerability in Unsloth Studio allowed a malicious Hugging..." Found in the opening sentences - CYBR 101 week 3: cyber hygiene, privacy, OSINT and social engineering
"A now-patched vulnerability in Unsloth Studio allowed a malicious..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role