← All Advisories
Reported from OT-Advisories.com as of

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

CVECVE-2026-6859
CVSS Score / Version
8.8 (High) / CVSS v3.1
Updated2026-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

VendorProductAffected VersionsPatch Status
Red HatRed Hat Enterprise Linux AI (RHEL AI) 3
Red Hatinstructlab
SubsystemsOT Supporting Infrastructure
SectorsMultiple

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

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-6859
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-6859
Vendor advisoryhttps://access.redhat.com/security/cve/CVE-2026-6859
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.