InstructLab Hardcodes trust_remote_code=True, Letting a Malicious HuggingFace Model Run Python Code on ilab Users
Last refreshed2026-11-19
Status: UPDATED
| Advisory ID: CVE-2026-6859
Key Details
CVE
CVE-2026-6859
CVSS Score / Version
8.8 (High) / CVSS v3.1
Updated
2026-10-26
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is network; attack complexity is low; privileges required is none; user interaction is required; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
Red Hat Enterprise Linux AI (RHEL AI) 3 and Red Hat instructlab
Classified as
CWE-829 (Inclusion of Functionality from Untrusted Control Sphere)
Exploitation prediction (EPSS)
0.45% probability of exploitation in the next 30 days (40% percentile) -- FIRST.org's EPSS model.
Affected Products, Subsystems & Sectors
Vendor
Product
Affected Versions
Patch Status
Red Hat
Red Hat Enterprise Linux AI (RHEL AI) 3
Red Hat
instructlab
Subsystems
OT Supporting Infrastructure
Sectors
Multiple
What to Know
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. (NVD)
What to Do
To mitigate this issue, only use models from trusted sources when performing `instructlab` operations. Review the origin and integrity of any HuggingFace model before using it with `ilab train/download/generate`. Consider running `instructlab` commands within a sandboxed or isolated environment to limit the potential impact of executing untrusted code. Source: Red Hat CVE-2026-6859