Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-829.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | — | — | Not affected | CNA |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | — | — | Not affected | CNA |
| — | instructlab (PyPI) | up to 0.26.1 | — | No fix listed | GHSA-rxpq-xgqx-fr7p |
- Red Hat Enterprise Linux AI (RHEL AI) 3 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux AI (RHEL AI) 3 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux AI (RHEL AI) 3 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Enterprise Linux AI (RHEL AI) 3 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux AI (RHEL AI) 3 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux AI (RHEL AI) 3 VendorRed Hat Affected — Fixed in — Not affected CNA
- instructlab (PyPI) Vendor— Affected up to 0.26.1 Fixed in — No fix listed GHSA-rxpq-xgqx-fr7p
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix yet |
Not affected: 1 product
- Red Hat Enterprise Linux AI (RHEL AI) 3
Timeline
- 2026-10-02 Threatist record created from CVE-2026-6859
- 2026-10-03 Alias added: GHSA-rxpq-xgqx-fr7p
- 2026-10-25 EPSS moved to the below the 50th percentile
References
More Red Hat Enterprise Linux Ai vulnerabilities
- TI-2026-35991 Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security checks KEVCVSS 3.1MEDIUM 6.5
- TI-2026-06013 Instructlab: instructlab: path traversal allows arbitrary directory creation and file write CVSS 3.1HIGH 7.1
Sources
- CVE-2026-6859 · CVE Program
- CVE-2026-6859 · NVD
- FIRST EPSS
- GHSA-rxpq-xgqx-fr7p · GitHub Advisory Database · CC BY 4.0
- CVE-2026-6859 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences