CVE-2026-86169
8.8Axolotl · Axolotl
Axolotl versions through 0.18.0 contain a remote code execution vulnerability in the multipack patch path due to an insecure default configuration of the trust_remote_code parameter.
Executive summary
A critical remote code execution vulnerability in Axolotl through 0.18.0 allows attackers to execute arbitrary Python code by leveraging insecure model loading defaults.
Vulnerability
This vulnerability arises because the multipack patch path incorrectly defaults the trust_remote_code parameter to None instead of False, effectively bypassing security guardrails. An attacker can trigger the execution of arbitrary Python code by providing a malicious Hugging Face model repository as the base model, which the application then loads with trust_remote_code=True.
Business impact
Successful exploitation of this vulnerability results in full remote code execution, granting an attacker the ability to run arbitrary commands on the host system. This level of compromise poses a severe risk of data theft, unauthorized system access, and potential lateral movement within the environment. Given the high CVSS score of 8.8, this flaw represents a significant risk to the confidentiality and integrity of any infrastructure running vulnerable Axolotl instances.
Remediation
Immediate Action: Update Axolotl to a version beyond 0.18.0 that enforces trust_remote_code=False by default. If an immediate update is not feasible, restrict the loading of models to only trusted, internal repositories to prevent the processing of malicious payloads.
Proactive Monitoring: Review application logs for unexpected model loading activities or the execution of unauthorized Python processes originating from the Axolotl service. Monitor for any attempts to specify non-standard or external Hugging Face repository paths in model configuration files.
Compensating Controls: Implement strict network egress filtering on servers running Axolotl to prevent them from reaching unauthorized or untrusted model repositories on the internet. Use containerization or sandboxing to limit the impact of a potential process compromise.
Exploitation status
Public Exploit Available: No (exploit_available: false)
Analyst recommendation
The potential for remote code execution makes this vulnerability a high-priority concern for all users of Axolotl. Administrators must prioritize updating to a patched version immediately to ensure that security defaults are correctly applied. Failure to remediate this issue exposes the underlying server infrastructure to complete compromise by unauthenticated attackers supplying malicious model configurations.
Sources
Originally found and disclosed by Gregory Tan, per the CVE Program record.
- Pull Request #3858 Patch commit
- Patch Commit Patch commit
- Multipack trust_remote_code guard Technical analysis
- patch_remote sink Technical analysis
- github.com
- VulnCheck Advisory: Axolotl through 0.18.0 Remote Code Execution via Multipack Patching Third-party advisory