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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-22 · Modified: 2026-07-15
- Aliases: GHSA-rxpq-xgqx-fr7p, PYSEC-2026-2522
- Record: https://cvemate.com/vulnerability/CVE-2026-6859 · JSON: https://cvemate.com/vulnerability/CVE-2026-6859/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.449%, percentile 40.745%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- PyPI instructlab (PyPI): ≤ 0.26.1
- redhat enterprise\_linux\_ai: 3.0
- redhat instructlab: na

## References

- <https://access.redhat.com/security/cve/CVE-2026-6859>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2459998>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6859.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6859>
- <https://github.com/instructlab/instructlab>
- <https://pypi.org/project/instructlab>
- <https://github.com/advisories/GHSA-rxpq-xgqx-fr7p>

---

Data as of 2026-12-05T06:32:46.787Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
