---
id: CVE-2026-86169
title: >-
  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
summary: >-
  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…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-829
vendor: axolotl-ai-cloud
product: axolotl
affected:
  - axolotl < 0.19.0
published: '2026-09-05'
updated: '2026-09-23'
sourceUpdated: '2026-09-23T17:17:46.980'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86169'
references:
  - url: 'https://github.com/axolotl-ai-cloud/axolotl'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/axolotl-ai-cloud/axolotl/blob/v0.18.0/src/axolotl/loaders/patch_manager.py#L794-L806
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/axolotl-ai-cloud/axolotl/blob/v0.18.0/src/axolotl/monkeypatch/multipack.py#L86-L96
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/axolotl-ai-cloud/axolotl/commit/b62d60b101eea7f32532ee3c0b17c2f2430a9262
    label: disclosure@vulncheck.com
  - url: 'https://github.com/axolotl-ai-cloud/axolotl/pull/3858'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/axolotl-ai-cloud/axolotl/releases/tag/v0.19.0'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/axolotl-through-0.18.0-remote-code-execution-via-multipack-patching
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
epss: 0.00939
epssPercentile: 0.59206
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-08T18:13:15.055313Z'
ingestedAt: '2026-09-06T07:51:56.398Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
