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).
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | instructlab | no fix listed | GHSA-rxpq-xgqx-fr7p |
| PyPI | instructlab | no fix listed | PYSEC-2026-2522 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | see references |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | see references |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | see references |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | see references |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | see references |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | see references |
Weakness: CWE-829 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://access.redhat.com/security/cve/CVE-2026-6859 vdb-entry, x_refsource_REDHAT
- RHBZ#2459998 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6859.json x_sadp-csaf-vex