CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Lifecycle Timeline
8DescriptionNVD
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.
AnalysisAI
Remote code execution in Hugging Face Transformers 5.2.0 allows a malicious model repository to bypass the user's explicit trust_remote_code=False safeguard when loading a LightGlue model via AutoModel.from_pretrained(). The LightGlueConfig deserializes the trust_remote_code flag from the untrusted config.json and propagates the attacker-controlled value into a nested AutoConfig.from_pretrained() call, enabling execution of arbitrary attacker-supplied Python during model initialization. …
Sign in for full analysis, threat intelligence, and remediation guidance.
RemediationAI
Within 24 hours: audit deployments using Transformers 5.2.0, restrict untrusted model sources, and isolate affected systems if possible. Within 7 days: apply the patch available per vendor advisory to upgrade Transformers beyond 5.2.0. …
Sign in for detailed remediation steps.
More from same product – last 7 days
HAProxy configuration injection in Red Hat OpenShift Container Platform 4 allows a low-privileged tenant with permission
Path traversal in Jupyter Server 2.17.0 allows authenticated users to read and write files in sibling directories outsid
Stack-based buffer overflow in rrdcached (the caching daemon for rrdtool) allows a local attacker with socket access to
Local code execution in Poppler's Splash rendering backend allows attackers to compromise applications that open attacke
Server-Side Request Forgery in Clair's fetcher component exposes internal network services and cloud metadata endpoints
Vendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-34084
GHSA-fgcw-684q-jj6r