Advisory

PYSEC-2026-2522

Also known as: CVE-2026-6859, GHSA-rxpq-xgqx-fr7p

Summary

InstructLab Includes Functionality from Untrusted Control Sphere

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-07-13 15:02 UTC
Modified
2026-07-13 16:31 UTC

Affected packages and fixes

instructlab

PyPI · All systems

Affected

  • introduced 0, last affected 0.26.1 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences