{"id":"CVE-2026-6859","aliases":["PYSEC-2026-2522"],"url":"https://o3.security/vulnerability/CVE-2026-6859","summary":"InstructLab Includes Functionality from Untrusted Control Sphere","details":"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":"2026-04-22T15:31:45Z","modified":"2026-07-13T16:43:19.089484180Z","cvss":{"score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":{"score":0.00441,"percentile":0.37582,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"instructlab","fixedVersion":null}],"fix":null,"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6859"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-6859"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2459998"},{"type":"PACKAGE","url":"https://github.com/instructlab/instructlab"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-13T16:43:19.089484180Z"}}