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.
Fix
Patch, vendor advisory and mitigation references on NVD 4
- https://access.redhat.com/security/cve/CVE-2026-6859 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2459998 Issue Tracking, Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-6859 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2459998 Issue Tracking, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.8 · redhatNVD modified 2026-10-26 21:10
Affected (CPE criteria) 2
cpe:2.3:a:redhat:instructlab:-:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux_ai:3.0:*:*:*:*:*:*:*
References 5
- https://access.redhat.com/security/cve/CVE-2026-6859 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2459998 Issue Tracking, Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-6859 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2459998 Issue Tracking, Vendor Advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6859.json