Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2026-5241

39
FAUCET Score

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.

First published: Jun 3, 2026Last modified: Jun 3, 2026

Impacted Technologies

VendorProductVersion(s)CPE
5.2.0CPE matchmatch criteria
cpe:2.3:a:huggingface:transformers:5.2.0:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.0

8.0HIGH

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

Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
NONE
Exploitability Score
1.6
Impact Score
5.8
CvssVersion
3.0

Exploit Intelligence

EPSS Score
0.55%
Probability of exploitation in next 30 days
EPSS Percentile
42.6%
Percentile rank of EPSS score among Peer Group
As of 2026-07-26
Model: v2026.06.15
This CVE's current EPSS score of 0.0055 is in the 48th percentile among its peer group of 834 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.8 Bluesky, 0.5 Mastodon, and 1.2 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.1 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (2)

github_advisorypatch availablevia nvd_reference
View patch
pippatch availablevia ghsa
Product: transformersFixed in: 5.5.0

Vendor Advisories (1)

pipGHSA-fgcw-684q-jj6rhigh

huggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading Path

Jun 3, 2026

References

access.redhat.com / errata/RHSA-2026:34456
access.redhat.com / errata/RHSA-2026:37275
access.redhat.com / errata/RHSA-2026:42644
access.redhat.com / security/cve/CVE-2026-5241
bugzilla.redhat.com / show_bug.cgi
security.access.redhat.com / data/csaf/v2/vex/2026/cve-2026-5241.json
github.com / huggingface/transformers/commit/676559d5022b74aaa0cee1cee0842b7f27c5320e
Patch
huntr.com / bounties/ceb3ce1a-4c45-497a-b25e-cb9a7685e619
ExploitThird Party Advisory