Vulnerability · Published Apr 22, 2026 · Assigned by redhat

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

High 8.8

In plain English

A high-severity security flaw in Red Hat Enterprise Linux AI (RHEL AI) 3 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities).

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.4%top 61.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIinstructlabno fix listedGHSA-rxpq-xgqx-fr7p
PyPIinstructlabno fix listedPYSEC-2026-2522

Affected products (as reported)

Weakness: CWE-829 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References