Skip to content
OpenAdvisories
High · 8.8 CVE-2026-6859 EUVD-2026-24752GHSA-rxpq-xgqx-fr7pPYSEC-2026-2522

Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`

Published Apr 22, 2026 · Updated Jul 15, 2026 · Assigned by redhat

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 products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux AI (RHEL AI) 3 — —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI instructlab <= 0.26.1 — GHSA-rxpq-xgqx-fr7p

References