Schwachstellen / CVE-2026-5241

kritisch

CVE-2026-5241

python-transformers: python-transformers: Arbitrary code execution due to overridden trust_remote_code setting

Veröffentlicht Geändert CWE 829
In der Trivy Database seit spätestens 24. Okt. 2026, 07:11 UTCWann der Eintrag vor diesem Build hinzukam, ist nicht erfasst.

Einstufung nach Quelle

NVD9.6CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
GHSA8.0CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Red Hat7.7CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

Trivys eigenes Label ist CRITICAL. Kritisch laut NVD. Niedriger laut GHSA (hoch), Red Hat (hoch).

Beschreibung

A vulnerability in the LightGlue model loading path of huggingface/transformers version 5.2.0 allows an attacker-controlled model repository to execute arbitrary code during model initialization. The issue arises because the `trust_remote_code` parameter, intended to prevent remote code execution, is overridden by untrusted serialized configuration data in a nested code path. Specifically, when loading a LightGlue model using `AutoModel.from_pretrained()` with `trust_remote_code=False`, the `LightGlueConfig` reads the `trust_remote_code` value from the untrusted `config.json` file and propagates it into nested `AutoConfig.from_pretrained()` calls. This results in the execution of attacker-provided Python modules, even when the victim explicitly disables remote code execution. The vulnerability poses a high risk for environments such as API inference servers, research notebooks, CI/CD pipelines, and model evaluation workers, potentially leading to credential theft, lateral movement, or persistence/backdoor deployment.

Betroffene Pakete und behobene Versionen

QuellePaketBehoben in
chainguardnemo, py3-transformers-4.51, text-generation-inference2.7.3-r11 und 2 weitere
echo pip::Echo OSVtransformers4.57.3+echo.1
pip::GitHub Security Advisory piptransformers5.5.0
Alle 5 Einträge aus 3 Quellen zeigen
QuellePaketBehoben in
chainguardnemo2.7.3-r11
chainguardpy3-transformers-4.510
chainguardtext-generation-inference3.3.7-r21
echo pip::Echo OSVtransformers4.57.3+echo.1
pip::GitHub Security Advisory piptransformers5.5.0

Referenzen

Alle 15 Referenzen

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.