CVE-2026-6859

· NIST NVD ↗

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.

HIGH
CVSS severity
8.8
CVSS base score
2026-04-22
Published

CWE codes

CWE-829

Affected products

redhat:instructlabredhat:enterprise_linux_ai

Sources