{"id":"CVE-2026-6859","aliases":["CVE-2026-6859","GHSA-rxpq-xgqx-fr7p","PYSEC-2026-2522"],"related":[],"kind":"vulnerability","state":"published","title":"Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se encontró un fallo en InstructLab. El script “linux_train.py” codifica de forma rígida “trust_remote_code=True” al cargar modelos de HuggingFace. Esto permite a un atacante remoto lograr la ejecución arbitraria de código Python al convencer a un usuario de ejecutar “ilab train/download/generate” con un modelo malicioso especialmente diseñado del HuggingFace Hub. Esta vulnerabilidad puede llevar a un compromiso completo del sistema.","source":"nvd"}],"published":"2026-04-22T13:04:04.795Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-829"],"affected":[{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-aws-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-azure-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-azure-rocm-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-gcp-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-rocm-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-aws-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-azure-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-azure-rocm-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-gcp-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-rocm-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.26.1"}],"ecosystem":"PyPI","package":"instructlab","purl":"pkg:pypi/instructlab","source":"ghsa"},{"ranges":[],"vendor":"redhat","product":"instructlab","cpe":"cpe:2.3:a:redhat:instructlab:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"3.0"}],"vendor":"redhat","product":"enterprise_linux_ai","cpe":"cpe:2.3:o:redhat:enterprise_linux_ai:3.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.26.1"}],"ecosystem":"PyPI","package":"instructlab","purl":"pkg:pypi/instructlab","source":"pysec"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-6859","tags":["vdb-entry","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2459998","tags":["issue-tracking","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6859.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6859","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/instructlab/instructlab","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/instructlab","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-rxpq-xgqx-fr7p","tags":["advisory"],"sources":["pysec"]}],"credits":["Red Hat would like to thank Martin Brodeur (independent security researcher) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-23T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6859","url":"https://www.cve.org/CVERecord?id=CVE-2026-6859","licence":"CVE Terms of Use","modified":"2026-07-15T00:40:32.102Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rxpq-xgqx-fr7p","url":"https://github.com/advisories/GHSA-rxpq-xgqx-fr7p","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:19.089Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6859","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6859","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2522","url":"https://osv.dev/vulnerability/PYSEC-2026-2522","licence":"CC-BY-4.0","modified":"2026-07-13T16:31:57.966Z"}],"updatedAt":"2026-11-25T22:59:19.320Z","epss":{"score":0.00449,"percentile":0.40734,"date":"2026-12-01T12:00:22.000Z"}}