CVE-2026-6859CWE-829

Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`

High · published April 22, 2026

CVSS v3.1
8.8
EPSS
1%
Percentile
55.0
In the wild
Unconfirmed
What it is

A flaw was found in InstructLab. The `linux_train.py` script hardcodes `trust_remote_code=True` when loading models from HuggingFace. This allows a remote attacker to achieve arbitrary Python code execution by convincing a user to run `ilab train/download/generate` with a specially crafted malicious model from the HuggingFace Hub. This vulnerability can lead to complete system compromise.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00767 · 55.0th percentile
Weakness
CWE-829 · Inclusion of Functionality from Untrusted Control Sphere
Published
2026-04-22T13:04Z
EPSS history
Timeline
  • 22 APR 13:04Z
    Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`
    cvelistv5