CVE-2026-6859
8.8Red Hat · Red Hat Enterprise Linux AI (RHEL AI)
InstructLab contains a flaw where the linux_train.py script hardcodes trust_remote_code=True, allowing remote code execution via malicious models from the HuggingFace Hub.
Executive summary
A critical vulnerability in InstructLab allows unauthenticated remote attackers to execute arbitrary code on systems running RHEL AI 3 by leveraging malicious models.
Vulnerability
The vulnerability stems from the use of trust_remote_code=True within the linux_train.py script, which processes models from the HuggingFace Hub. This insecure configuration allows an attacker to trigger arbitrary Python code execution when a user initiates training, downloading, or generation tasks using a crafted malicious model.
Business impact
The potential impact of this vulnerability is a complete system compromise, as it grants attackers the ability to execute arbitrary code with the privileges of the user running the InstructLab CLI. Given the CVSS score of 8.8, this flaw represents a significant risk to data integrity, system availability, and the confidentiality of environments utilizing RHEL AI. Unauthorized access could lead to the theft of sensitive model data or the deployment of persistent threats within the infrastructure.
Remediation
Immediate Action: Apply the security updates provided by Red Hat for RHEL AI 3 immediately as detailed in the official Red Hat security advisory.
Proactive Monitoring: Review system logs for unauthorized model downloads or unusual process execution patterns initiated by the InstructLab CLI.
Compensating Controls: Restrict network access for systems running InstructLab to prevent connections to untrusted or external model repositories until patches are applied.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
Due to the severity of the potential impact, organizations must prioritize patching their RHEL AI environments. Users should exercise extreme caution when interacting with external model repositories and ensure that software updates are deployed as soon as they are made available by the vendor.
More Red Hat CVEs
Sources
Originally found and disclosed by Red Hat would like to thank Martin Brodeur (independent security researcher) for reporting this issue., per the CVE Program record.
- Vulnerability database entry
- RHBZ#2459998 Issue tracker