{"id":"CVE-2026-6859","published":"2026-04-22T13:04:04Z","modified":"2026-07-15T00:40:32Z","title":"Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`","vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00449,"percentile":0.39881,"provenance":"source"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-6859","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2459998","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6859.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":7.98},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","versions":["all versions"]}],"workarounds":{"items":["To mitigate this issue, only use models from trusted sources when performing `instructlab` operations. Review the origin and integrity of any HuggingFace model before using it with `ilab train/download/generate`. Consider running `instructlab` commands within a sandboxed or isolated environment to limit the potential impact of executing untrusted code."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-23T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"instructlab","vulnerableRanges":["<=0.26.1"],"patched":[],"from":["GHSA-rxpq-xgqx-fr7p","PYSEC-2026-2522"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-24752","exploited":false,"provenance":"source"}}