Home

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.

PUBLISHED Reserved 2026-04-22 | Published 2026-04-22 | Updated 2026-04-28 | Assigner redhat




HIGH: 8.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Problem types

Inclusion of Functionality from Untrusted Control Sphere

Product status

Default status
affected

Default status
affected

Default status
unaffected

Default status
affected

Default status
affected

Default status
unaffected

Timeline

2026-04-15:Reported to Red Hat.
2026-04-15:Made public.

Credits

Red Hat would like to thank Martin Brodeur (independent security researcher) for reporting this issue.

References

access.redhat.com/security/cve/CVE-2026-6859 vdb-entry

bugzilla.redhat.com/show_bug.cgi?id=2459998 (RHBZ#2459998) issue-tracking

cve.org (CVE-2026-6859)

nvd.nist.gov (CVE-2026-6859)

Download JSON