CVE-2026-86169: Axolotl through 0.18.0 Remote Code Execution via Multipack Patching

Published Sep 5, 2026
·
Updated

Axolotl through 0.18.0 contains a remote code execution vulnerability in the multipack patch path where trustremotecode 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 basemodel, which is loaded with hardcoded trustremotecode=True during AutoModelForCausalLM.frompretrained.

Affected Software

1 affected component
Axolotl<=0.18.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Axolotl to a version that resolves this vulnerability.

    Fixed in 0.18.0
  2. Configuration

    When loading a Hugging Face model, ensure trust_remote_code is set to False (avoid the default behavior that can bypass the security guard and allow arbitrary Python code execution from a malicious repository selected as base_model).

    Hugging Face Transformers AutoModelForCausalLM.from_pretrained trust_remote_code = False

Event History

Sep 5, 2026
CVE Published
via MITRE·11:01 AM
Data Sourced
via MITRE·11:01 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Users of Axolotl through 0.18.0 are exposed when they use the multipack patch path and load a Hugging Face model repository as the base_model. The vulnerable load operation enables remote code execution from the selected repository.

2

What does an attacker need to exploit it?

An attacker needs to cause a malicious Hugging Face model repository to be selected as base_model. Exploitation also requires a user to initiate the model-loading workflow, as reflected by the user-interaction requirement.

3

Are default trust settings sufficient protection?

No. In the affected multipack patch path, trust_remote_code defaults to None rather than False, and the model is loaded with trust_remote_code hardcoded to True, bypassing the intended security guard.

4

What can be done before a fix is applied?

Avoid the affected multipack patch workflow for untrusted or unverified base_model repositories. Restrict base_model selection to repositories you control or have independently reviewed for executable Python code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203