9.6

CVE-2026-5241: Policy Bypass in LightGlue Nested Config Resolution in huggingface/transformers

Modified
AliasesGHSA-fgcw-684q-jj6rPYSEC-2026-2290CGA-3r96-xg72-rv5v
Published 03-06-2026Last modified 01-09-2026

Vulnerability summary

CVE-2026-5241 is a critical (CVSS 9.6) vulnerability in huggingface huggingface/transformers. EPSS estimates a 0.60% chance of exploitation in the next 30 days, higher than 48.5% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.6/10
010
Critical · v3.1 (NVD)
EPSS score
0.60%
0%100%
Low · -0.34 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 03-06-2026
    PublishedVulnerability first disclosed.
  2. 01-09-2026
    Last modifiedVulnerability information updated.

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

CVSS metrics

6 scores · 4 sources · 2 versions

EPSS trend

Probability

0.60%

Chance of exploitation in the next 30 days

Percentile

49%

Versus all other CVEs

30-day change

Decrease -0.34 pp

From 0.94% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard10 products
  • nemo< 2.7.3-r11
  • py3.10-transformers-4.51All versions (No fix recorded)
  • py3.10-transformers-4.56All versions (No fix recorded)
  • py3.11-transformers-4.51All versions (No fix recorded)
  • py3.11-transformers-4.56All versions (No fix recorded)
Huggingface2 products
PyPI1 product
  • transformers< 5.5.0 | ≤ 5.2.0

3 vendors · 13 products

References

14 links
Show all 14 references