Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Red Hat / Red Hat Enterprise Linux AI (RHEL AI) 3 | affected |
| Red Hat / Red Hat Enterprise Linux AI (RHEL AI) 3 | affected |
| Red Hat / Red Hat Enterprise Linux AI (RHEL AI) 3 | unaffected |
| Red Hat / Red Hat Enterprise Linux AI (RHEL AI) 3 | affected |
| Red Hat / Red Hat Enterprise Linux AI (RHEL AI) 3 | affected |
| Red Hat / Red Hat Enterprise Linux AI (RHEL AI) 3 | unaffected |
CWE
CWE-829
References
- https://access.redhat.com/security/cve/CVE-2026-6859
- https://bugzilla.redhat.com/show_bug.cgi?id=2459998
ADP enrichment
No English description supplied.
No references supplied.
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.