Skip to main content
← All vulnerabilities
CVE-2026-6859GHSA-RXPQ-XGQX-FR7PPYSEC-2026-2522

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

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • rhelai3/bootc-aws-cuda-rhel9

    Version range not reported

  • rhelai3/bootc-azure-cuda-rhel9

    Version range not reported

  • rhelai3/bootc-azure-rocm-rhel9

    Version range not reported

  • rhelai3/bootc-cuda-rhel9

    Version range not reported

  • rhelai3/bootc-gcp-cuda-rhel9

    Version range not reported

  • rhelai3/bootc-rocm-rhel9

    Version range not reported

  • instructlabPyPI

    through 0.26.1

References 2

access.redhat.com

bugzilla.redhat.com