Axolotl before 0.19.0 Remote Code Execution via Multipack Patching
cve-program · CVE-2026-86169
PublishedAxolotl 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-86169 · CVE overview and exploitation status
cve-program · CVE-2026-86169
- https://github.com/axolotl-ai-cloud/axolotl/pull/3858
- https://github.com/axolotl-ai-cloud/axolotl/commit/b62d60b101eea7f32532ee3c0b17c2f2430a9262
- https://github.com/axolotl-ai-cloud/axolotl/blob/v0.18.0/src/axolotl/loaders/patch_manager.py#L794-L806
- https://github.com/axolotl-ai-cloud/axolotl/blob/v0.18.0/src/axolotl/monkeypatch/multipack.py#L86-L96
- https://github.com/axolotl-ai-cloud/axolotl/releases/tag/v0.19.0
- https://github.com/axolotl-ai-cloud/axolotl
- https://www.vulncheck.com/advisories/axolotl-through-0.18.0-remote-code-execution-via-multipack-patching
Related changes
Linked by CVE identifierNo related changes are available here.