ZeroHour

CVE-2026-86169

niche

Remote code execution in Axolotl via untrusted Hugging Face base model loading

CVSS 4.0
8.7 high
EPSS
<1%p40
Published
()
Modified
AI analysis

Axolotl through 0.18.0 contains a remote code execution flaw in its multipack patch path, where trust_remote_code defaults to None instead of False, allowing a security guard designed to block remote code loading to be bypassed. When a user selects an attacker-crafted Hugging Face repository as the base_model, it is loaded via AutoModelForCausalLM.from_pretrained with hardcoded trust_remote_code=True, executing attacker-supplied Python code from the repository. An attacker gains arbitrary code execution on the machine running the fine-tuning job, with that process's privileges and potential access to training data, model weights, and credentials in the environment. Anyone running an affected Axolotl version who fine-tunes from a Hugging Face base model is affected, and triggering the flaw requires user interaction in the form of choosing the malicious repository. No public proof-of-concept is known, the issue is not in CISA KEV, and EPSS estimates a 0.5% probability of exploitation within 30 days.

What to do: Upgrade Axolotl to a release newer than 0.18.0 as soon as a patched version is published, checking the project's GitHub releases and security advisories for the fixed version. Until then, use only base_model repositories you control or have vetted, and keep trust_remote_code disabled wherever it is configurable. Audit recent fine-tuning runs that pulled base models from Hugging Face for untrusted repositories and treat hosts that ran such jobs as potentially compromised.

Affected
Axolotl (open-source project, Axolotl AI) Axolotlall versions through and including 0.18.0
Estimated exposure
nichelikely thousands to low tens of thousands of users and training runs; no published install counts — Axolotl is a specialized open-source LLM fine-tuning framework used mostly in internal GPU training pipelines rather than internet-exposed services, and no authoritative install-count or scan data exists, so exposure is bounded by the size…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Axolotl before 0.19.0 contains a remote code execution vulnerability in the multipack patch path where trust_remote_code defaults to None instead of False, causing the security guard to be bypassed. Attackers can execute arbitrary Python code by crafting a malicious Hugging Face model repository selected as base_model, which is loaded with hardcoded trust_remote_code=True during AutoModelForCausalLM.from_pretrained.

Weakness
CWE-829
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.