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.
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Transformers | Huggingface | 5.2.0 (including) | 5.2.0 (including) |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/vllm-spyre-rhel9:1789681201 | * |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/vllm-cpu-rhel9:1789681128 | * |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/vllm-cuda-rhel9:1789681126 | * |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/model-opt-cuda-rhel9:1789681126 | * |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/vllm-rocm-rhel9:1789681126 | * |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/vllm-cpu-rhel9:1790075793 | * |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/vllm-spyre-rhel9:1790076141 | * |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/vllm-cuda-rhel9:1790090131 | * |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/vllm-rocm-rhel9:1790109620 | * |
| Red Hat AI Inference Server 3.4 | RedHat | rhaii/model-opt-cuda-rhel9:1790076498 | * |
| Red Hat OpenShift AI 2.25 | RedHat | rhoai/odh-caikit-tgis-serving-rhel9:1783082430 | * |
| Red Hat OpenShift AI 2.25 | RedHat | rhoai/odh-training-cuda121-torch24-py311-rhel9:1783998418 | * |
| Red Hat OpenShift AI 2.25 | RedHat | rhoai/odh-training-cuda124-torch25-py311-rhel9:1783998418 | * |
| Red Hat OpenShift AI 2.25 | RedHat | rhoai/odh-training-rocm62-torch24-py311-rhel9:1782475830 | * |
| Red Hat OpenShift AI 2.25 | RedHat | rhoai/odh-training-rocm62-torch25-py311-rhel9:1782475830 | * |
| Red Hat OpenShift AI 3.3 | RedHat | rhoai/odh-training-cuda121-torch24-py311-rhel9:1782471555 | * |
| Red Hat OpenShift AI 3.3 | RedHat | rhoai/odh-training-cuda124-torch25-py311-rhel9:1782471579 | * |
| Red Hat OpenShift AI 3.3 | RedHat | rhoai/odh-training-cuda128-torch28-py312-rhel9:1783073038 | * |
| Red Hat OpenShift AI 3.3 | RedHat | rhoai/odh-training-cuda128-torch29-py312-rhel9:1782991170 | * |
| Red Hat OpenShift AI 3.3 | RedHat | rhoai/odh-training-rocm62-torch24-py311-rhel9:1782471656 | * |
| Red Hat OpenShift AI 3.3 | RedHat | rhoai/odh-training-rocm62-torch25-py311-rhel9:1782471663 | * |
| Red Hat OpenShift AI 3.3 | RedHat | rhoai/odh-training-rocm64-torch28-py312-rhel9:1783069204 | * |
| Red Hat OpenShift AI 3.3 | RedHat | rhoai/odh-training-rocm64-torch29-py312-rhel9:1782991170 | * |
| Red Hat OpenShift AI 3.3 | RedHat | rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1782471606 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-th06-cpu-torch210-py312-rhel9:1782135464 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-th06-cuda130-torch210-py312-rhel9:1782136276 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-th06-rocm64-torch291-py312-rhel9:1782135346 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-training-cuda121-torch24-py311-rhel9:1782132167 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-training-cuda124-torch25-py311-rhel9:1782132207 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-training-cuda128-torch29-py312-rhel9:1782132240 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-training-rocm62-torch24-py311-rhel9:1782132286 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-training-rocm62-torch25-py311-rhel9:1782132236 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-training-rocm64-torch28-py312-rhel9:1782132163 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-training-cuda128-torch28-py312-rhel9:1786611822 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-training-rocm64-torch29-py312-rhel9:1786611435 | * |