Unsloth Fixes Arbitrary Code Execution Flaw Triggered by Malicious Hugging Face Models
A security flaw allowed malicious model files to run unauthorized code when users selected them, prompting a software update to fix the issue.
Overview
A security researcher found a serious flaw in the Unsloth Studio software that allowed attackers to run harmful code on a user's computer. The problem occurred when the software checked a model from the Hugging Face platform because it was set to trust external code by default. An attacker could hide malicious Python code inside a model file, and the software would run it just by looking at the file. This meant that a simple check of a model's settings could lead to a full system compromise without the user doing anything else. The code ran with the same permissionsThe specific rights granted to an account or app to read, write, or run files and services as the software itself, giving attackers access to sensitive data and credentialsThe login details, such as a username and password or key, that prove who an account belongs to. Users of the software must update to version 2026.6.9 to fix the issue.
Terms in this story
- 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.
- 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
- Arbitrary Code Execution
- A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.
- 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
- 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.
- 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.
- model weights
- The billions of learned numerical values that store what a trained artificial intelligence model knows. Training a frontier AI model costs millions of dollars in computing time, so protecting the resulting model weights from theft is a top priority for AI labs.
- 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.
- 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
- hardcoded
- Passwords or secret keys written directly into source code instead of stored in a separate vault. When a vendor ships a router or server appliance with hardcoded credentials inside its firmware, every customer device shares the exact same secret backdoor password.
- API endpoints
- A specific URL path where an API listens for requests to perform one action or return data. A web service might have one API endpoint for checking a user profile and another for resetting a password, and forgetting an access check on one endpoint can leak records.
- tokens
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
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 GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (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
"Unsloth has addressed a critical arbitrary code execution vulnerability..." 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 Fixes Arbitrary Code Execution Flaw Triggered by Malicious Hugging Face Models..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......has addressed a critical arbitrary code execution vulnerability in its Studio web interface. This flaw..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role