CVE-2026-6859: Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`
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.
Security readout for executives and security teams
Plain-English summary
This flaw can let a malicious HuggingFace model run Python code when a user uses affected InstructLab training, download, or generation workflows. It requires user interaction, but successful exploitation could compromise the system running the workflow.
Executive priority
Treat this as high priority for AI engineering and platform teams using RHEL AI 3. The risk is not internet-wormable, but trusted-user model workflows can become a full host compromise path.
Technical view
InstructLab’s linux_train.py hardcodes trust_remote_code=True when loading HuggingFace models. A crafted model can therefore execute attacker-controlled Python if a user runs ilab train, download, or generate against it. Red Hat maps this to CWE-829 and CVSS 8.8.
Likely exposure
Exposure is most likely in Red Hat Enterprise Linux AI 3 environments using the listed CUDA bootc packages. The source marks ROCm packages as unaffected. No vulnerable version ranges are provided.
Exploitation context
The provided sources do not report known active exploitation, and KEV is false. Exploitation requires convincing a user to invoke affected ilab workflows with a malicious HuggingFace Hub model.
Researcher notes
Evidence is specific to InstructLab behavior in Red Hat Enterprise Linux AI 3 package contexts. Sources do not provide patch versions, exploit samples, or confirmed exploitation. Avoid broad claims beyond the listed packages.
Mitigation direction
Check Red Hat CVE, Bugzilla, and VEX guidance for fixes or updated package status.
Do not run ilab workflows against untrusted HuggingFace models.
Restrict model sources to approved repositories and reviewed model revisions.
Isolate training and generation workloads from sensitive hosts and credentials.
Prioritize updates for affected RHEL AI 3 CUDA bootc images when available.
Validation and detection
Inventory RHEL AI 3 systems and bootc image package names.
Confirm whether CUDA bootc packages listed as affected are deployed.
Verify ROCm bootc packages are treated according to the Red Hat unaffected status.
Review ilab train, download, and generate usage with HuggingFace Hub models.
Check Red Hat advisories for fixed builds or revised VEX status.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-829: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
7Timeline events
2ADP providers
4Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-829 · source CWE mapping
Inclusion of Functionality from Untrusted Control Sphere
Inclusion of Functionality from Untrusted Control Sphere represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.