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.
References7
- github.com/axolotl-ai-cloud/axolotl
- github.com/axolotl-ai-cloud/axolotl/blob/v0.18.0/src/axolotl/lo…
- github.com/axolotl-ai-cloud/axolotl/blob/v0.18.0/src/axolotl/mo…
- github.com/axolotl-ai-cloud/axolotl/commit/b62d60b101eea7f32532…
- github.com/axolotl-ai-cloud/axolotl/pull/3858
- github.com/axolotl-ai-cloud/axolotl/releases/tag/v0.19.0
- www.vulncheck.com/advisories/axolotl-through-0.18.0-remote-code…
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 4.0
-
8.7
HIGH
Score source: CNA
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 - EPSS — exploit probability
- 1% percentile: 61 · as of 7 November 2026
- CWE
- CWE-829
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.