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.
{
"github_reviewed": true,
"severity": "HIGH",
"github_reviewed_at": "2026-04-29T22:08:37Z",
"cwe_ids": [
"CWE-829"
],
"nvd_published_at": "2026-04-22T14:17:07Z"
}