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.
Published: 2026-04-22
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Apply Workaround
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

Vendor Workaround

To mitigate this issue, only use models from trusted sources when performing `instructlab` operations. Review the origin and integrity of any HuggingFace model before using it with `ilab train/download/generate`. Consider running `instructlab` commands within a sandboxed or isolated environment to limit the potential impact of executing untrusted code.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-rxpq-xgqx-fr7p InstructLab Includes Functionality from Untrusted Control Sphere
History

Wed, 06 May 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat instructlab
CPEs cpe:2.3:a:redhat:instructlab:-:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_ai:3.0:*:*:*:*:*:*:*
Vendors & Products Redhat instructlab

Thu, 23 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 23 Apr 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Wed, 22 Apr 2026 13:45:00 +0000

Type Values Removed Values Added
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.
Title Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`
First Time appeared Redhat
Redhat enterprise Linux Ai
Weaknesses CWE-829
CPEs cpe:/a:redhat:enterprise_linux_ai:3
Vendors & Products Redhat
Redhat enterprise Linux Ai
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Redhat Enterprise Linux Ai Instructlab
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-05-04T06:05:04.984Z

Reserved: 2026-04-22T12:54:46.753Z

Link: CVE-2026-6859

cve-icon Vulnrichment

Updated: 2026-04-23T14:00:32.754Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-22T14:17:07.687

Modified: 2026-05-06T20:23:29.027

Link: CVE-2026-6859

cve-icon Redhat

Severity : Important

Publid Date: 2026-04-15T00:00:00Z

Links: CVE-2026-6859 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-27T19:55:07Z

Weaknesses