8.8High

CVE-2026-6859Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`

Red Hat Red Hat Enterprise Linux AI (RHEL AI) 3 Published: (7 months ago)

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.

Weakness (CWE): CWE-829

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
redhat enterprise linux ai 3.0
redhat instructlab —
Red Hat Red Hat Enterprise Linux AI (RHEL AI) 3 all versions

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:redhat:instructlab:-:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_ai:3.0:*:*:*:*:*:*:*