Vulnerabilidades / CVE-2026-5241

crítica

CVE-2026-5241

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

Publicada Modificada CWE 829
En la Trivy database desde, como mínimo, el 24 oct 2026, 07:11 UTCNo consta cuándo entró antes de ese build.

Severidad por fuente

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

La etiqueta propia de Trivy es CRITICAL. Crítica según NVD. Más baja según GHSA (alta), Red Hat (alta).

Descripción

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.

Paquetes afectados y versiones corregidas

FuentePaqueteCorregido en
chainguardnemo, py3-transformers-4.51, text-generation-inference2.7.3-r11 y 2 más
echo pip::Echo OSVtransformers4.57.3+echo.1
pip::GitHub Security Advisory piptransformers5.5.0
Mostrar las 5 entradas de 3 fuentes
FuentePaqueteCorregido en
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

Referencias

Las 15 referencias

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.