CVE-2026-6859
Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`
- State
- Published
- Severity
- 8.8 High
- Published
- Apr 22, 2026
- Updated
- Jul 15, 2026
- Reserved
- Apr 22, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 8.8 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | redhat |
| 3.1 | 8.8 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | redhat-SADP |
Weaknesses
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
Affected Products
| Product | Versions |
|---|---|
Red Hat Enterprise Linux AI (RHEL AI) 3Red Hat | |
Red Hat Enterprise Linux AI (RHEL AI) 3Red Hat | |
Red Hat Enterprise Linux AI (RHEL AI) 3Red Hat | |
Red Hat Enterprise Linux AI (RHEL AI) 3Red Hat | |
Red Hat Enterprise Linux AI (RHEL AI) 3Red Hat | |
Red Hat Enterprise Linux AI (RHEL AI) 3Red Hat |
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.