PoC Monitor
← All CVEs
CVE-2026-6859published 22 Apr 2026 13:04 UTCData: JSON · API

Red Hat Enterprise Linux AI (RHEL AI) 3

Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CNA · CWE-829
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

instructlab (PyPI)
  • <= 0.26.1

from GitHub Security Advisory GHSA-rxpq-xgqx-fr7p

Mitigation

The record names no fix. Check the vendor advisory below.

Workaround

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.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published22 Apr 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.