{
  "id": "CVE-2026-6859",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-6859",
  "published_at": "2026-04-22T13:04:04.795Z",
  "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",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-829",
  "cpes": [
    "cpe:2.3:a:redhat:instructlab:-:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux_ai:3.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "instructlab",
        "ranges": [
          "\u003c= 0.26.1"
        ],
        "fixed_in": null,
        "ecosystem": "PyPI",
        "advisory": "GHSA-rxpq-xgqx-fr7p"
      }
    ],
    "workarounds": [
      "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."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
