LIVE · cybersecurity feed
Live wire
cve recordcritical

CVE-2026-5241

huggingface · transformers

Published
CVSS9.6
Severitycritical
WeaknessCWE-829
ExploitedNot in CISA KEV

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Description

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-pr

References

← Back to the CVE Tracker

Our coverage of CVE-2026-5241

No stories yet. This page updates automatically when we publish reporting that references CVE-2026-5241.