Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true`
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | affected | — |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | affected | — |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | unaffected | — |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | affected | — |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | affected | — |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | unaffected | — |
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Redhat | Enterprise Linux Ai |
|
Vendor 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.
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-rxpq-xgqx-fr7p | InstructLab Includes Functionality from Untrusted Control Sphere |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.441% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat instructlab
|
|
| CPEs | cpe:2.3:a:redhat:instructlab:-:*:*:*:*:*:*:* cpe:2.3:o:redhat:enterprise_linux_ai:3.0:*:*:*:*:*:*:* |
|
| Vendors & Products |
Redhat instructlab
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Instructlab: instructlab: arbitrary code execution due to hardcoded `trust_remote_code=true` | |
| First Time appeared |
Redhat
Redhat enterprise Linux Ai |
|
| Weaknesses | CWE-829 | |
| CPEs | cpe:/a:redhat:enterprise_linux_ai:3 | |
| Vendors & Products |
Redhat
Redhat enterprise Linux Ai |
|
| References |
| |
| Metrics |
cvssV3_1
|