# CVE-2026-6859: Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`

- Severity: High 8.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-04-22T13:04:04.795Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-rxpq-xgqx-fr7p, PYSEC-2026-2522
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- rhelai3/bootc-aws-cuda-rhel9: no versions given
- rhelai3/bootc-azure-cuda-rhel9: no versions given
- rhelai3/bootc-azure-rocm-rhel9: no versions given
- rhelai3/bootc-cuda-rhel9: no versions given
- rhelai3/bootc-gcp-cuda-rhel9: no versions given
- rhelai3/bootc-rocm-rhel9: no versions given
- instructlab (PyPI): up to 0.26.1
- redhat instructlab: no versions given
- redhat enterprise_linux_ai: 3.0

## Every score

- redhat: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/security/cve/CVE-2026-6859> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2459998> (issue-tracking, vendor-advisory, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6859.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6859> (advisory)
- <https://github.com/instructlab/instructlab> (package)
- <https://pypi.org/project/instructlab> (package)
- <https://github.com/advisories/GHSA-rxpq-xgqx-fr7p> (advisory)

## Sources

- CVE List: [CVE-2026-6859](https://www.cve.org/CVERecord?id=CVE-2026-6859), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-rxpq-xgqx-fr7p](https://github.com/advisories/GHSA-rxpq-xgqx-fr7p), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-6859](https://nvd.nist.gov/vuln/detail/CVE-2026-6859), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2522](https://osv.dev/vulnerability/PYSEC-2026-2522), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-6859 · Whole record: https://cve.day/CVE-2026-6859.json · Rebuilt by cve.day 2026-11-25T22:59:19.320Z
