Trusting Unsloth’s trust setting could mean executing malicious code
A flaw in a model loader allows attackers to run malicious code even when a security setting is enabled.
Overview
A high-severity flaw in Unsloth's model loaderA stage of malware that runs first on an infected machine to fetch, decrypt, and launch other payloads allows attackers to run malicious codeSoftware built to steal data, spy on users, lock files, or take control of a computer when a crafted model configurationA text file that stores settings, network addresses, and options for how a program or server runs is loaded. This vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend, tracked as CVEThe public tracking code assigned to a specific known security flaw in software or hardware-2026-93348, carries a CVSS scoreThe standard rating scale used to score how severe a software security flaw is of 8.6 and exposes AI training data, model artifacts, and cloud credentialsAccess keys, tokens, or login secrets that grant control over cloud servers and storage. The issue occurs because the software uses a model-type value to build a Python import statement without proper validation. An attacker can inject extra Python statements into that import, which then execute through the exec() function. This happens even if the trust_remote_code setting is disabled, because the vulnerable path does not use Hugging Face's remote-code mechanism. Unsloth Zoo versions from 2025.9.9 to before 2026.8.14 and Unsloth versions from 2025.9.9 to before 2026.8.20 are affected.
Terms in this story
- loader
- A stage of malware that runs first on an infected machine to fetch, decrypt, and launch other payloads. Criminal groups specialize in spreading a stealthy loader through spam or fake downloads and then charge ransomware and infostealer operators to deliver their malware onto those infected PCs. Security+ objective 2.4 lists the term
- malicious code
- Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
- 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.
- 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
- CVE
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- CVSS score
- The standard rating scale used to score how severe a software security flaw is. Security advisories include a CVSS rating from low to critical based on how easy a bug is to exploit and how much damage it allows. Security+ objective 4.3 lists the term
- 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
- 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.
- exploitation
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- 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.
- 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 CSO Online website. Cite the article, not this page.
Read the full article on CSO Online (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
"Pillar Security has disclosed a high-severity vulnerability..." Found by reading the article; these exact words are in it - Who is affected: "AI developers..." Organizations using the product
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"......code. Pillar Security has disclosed a high-severity vulnerability in Unsloth's model loader that could allow..." Found in the opening sentences - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"Trusting Unsloth’s trust setting could mean executing malicious code..." Found in the headline - Security+ 4.3 Explain various activities associated with vulnerability management.
"......code. Pillar Security has disclosed a high-severity vulnerability in Unsloth's model loader that could..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......code. Pillar Security has disclosed a high-severity vulnerability in Unsloth's model loader that could allow..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"AI developers may have a security setting enabled..." Found in the opening sentences - CYBR 101 week 9: malware, indicators and how detection works
"......disclosed a high-severity vulnerability in Unsloth's model loader that could allow arbitrary Python code execution..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of security implications of software configurations.
"Setting trust_remote_code=False does not prevent exploitation..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role