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.
CVE-2026-5241
This critical-severity CVE scores 9.6 under NVD CVSS v3. EPSS exploit probability: 0.5%, top 57% of all CVEs by exploit prediction. GitHub Security Advisory enrichment pending alignment with NVD CVSS.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.6
- EG Score
- 9.6(medium)
- EG Risk
- 59(Track*)EG Risk 59/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity96% × 45%Exploitation40% × 40%Automatability0% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 1%
- EPSS %ILE
- 43%
- KEV
- Not listed
Published
June 3, 2026
Last Modified
July 22, 2026
Advisory Details (2)
Auto-updated Jun 3, 2026huntr - The world’s first bug bounty platform for AI/ML
https://huntr.com/bounties/ceb3ce1a-4c45-497a-b25e-cb9a7685e619commit 676559d5022b (huggingface/transformers)
Fix landed in huggingface/transformers commit 676559d5022b — awaiting tagged release
https://github.com/huggingface/transformers/commit/676559d5022b74aaa0cee1cee0842b7f27c5320eVendor Advisories for CVE-2026-5241(4)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:42644Red Hat Product SecurityHigh
Red Hat Security Advisory: RHOAI 2.25.9 - Red Hat OpenShift AI
- RHSA-2026:37275Red Hat Product SecurityCritical
Red Hat Security Advisory: RHOAI 3.3.5 - Red Hat OpenShift AI
- RHSA-2026:34456Red Hat Product SecurityCritical
Red Hat Security Advisory: RHOAI 3.4.2 - Red Hat OpenShift AI
- GHSA-fgcw-684q-jj6rGitHub Security AdvisoriesHigh
huggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading Path
Patch Availability(3)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | rhoai/odh-training-rocm62-torch25-py311-rhel9:1782475830 | 2026-07-21 | redhat |
| redhat | rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1782471606 | 2026-07-09 | redhat |
| redhat | rhoai/odh-training-rocm64-torch28-py312-rhel9:1782132163 | 2026-07-01 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| transformers | 0.1 ... 5.2.0 (212 versions) | — | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 18× in last 7d / 78× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 149 total refreshes for this CVE.
- 2026-07-27 09:00 UTCVendor advisory
- 2026-07-27 02:40 UTCVendor advisory
- 2026-07-26 22:42 UTCEG score recompute
- 2026-07-26 22:42 UTCVendor advisory
- 2026-07-26 14:54 UTCEPSS rescore
- 2026-07-26 14:54 UTCEPSS rescore
- 2026-07-25 14:18 UTCEPSS rescore
- 2026-07-25 14:18 UTCEPSS rescore
- 2026-07-24 14:18 UTCEPSS rescore
- 2026-07-24 14:18 UTCEPSS rescore
- 2026-07-23 14:18 UTCEPSS rescore
- 2026-07-23 14:18 UTCEPSS rescore
- 2026-07-23 03:19 UTCEG score recompute▲ 1.60
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-21 15:25 UTCEPSS rescore
- 2026-07-21 15:25 UTCEPSS rescore
- 2026-07-20 17:08 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 02:29 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-16 00:39 UTCVendor advisory
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-15 01:23 UTCNVD updateCVSS v3 → 9.6 · severity → CRITICAL
- 2026-07-15 00:50 UTCMITRE cvelistV5CVSS v3 → 7.7 · severity → HIGH
- 2026-07-14 16:36 UTCVendor advisory
- 2026-07-14 03:31 UTCVendor advisory
- 2026-07-13 22:31 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-12 01:09 UTCVendor advisory
- 2026-07-12 01:09 UTCGHSA enrichment
- 2026-07-11 12:43 UTCVendor advisory
- 2026-07-11 12:43 UTCGHSA enrichment
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-10 12:26 UTCNVD updateCVSS v3 → 9.6 · severity → CRITICAL
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-09 07:06 UTCVendor advisory
- 2026-07-09 07:06 UTCGHSA enrichment
- 2026-07-08 16:28 UTCVendor advisory
- 2026-07-08 16:28 UTCGHSA enrichment
- 2026-07-08 15:16 UTCEPSS rescore
- 2026-07-08 15:16 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 13:07 UTCMITRE cvelistV5CVSS v3 → 7.7 · severity → HIGH
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:31 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 19:53 UTCVendor advisory
- 2026-07-03 19:53 UTCGHSA enrichment
- 2026-07-02 12:30 UTCVendor advisory
- 2026-07-02 12:30 UTCGHSA enrichment
- 2026-07-01 23:22 UTCGHSA enrichment
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-07-01 10:26 UTCGHSA enrichment
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 22:11 UTCGHSA enrichment
- 2026-06-29 23:11 UTCGHSA enrichment
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 10:51 UTCGHSA enrichment
- 2026-06-28 16:41 UTCGHSA enrichment
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:26 UTCGHSA enrichment
- 2026-06-27 16:11 UTCGHSA enrichment
- 2026-06-27 03:48 UTCGHSA enrichment
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 15:14 UTCGHSA enrichment
- 2026-06-25 22:53 UTCGHSA enrichment
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 10:38 UTCGHSA enrichment
- 2026-06-24 22:23 UTCGHSA enrichment
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-24 09:24 UTCGHSA enrichment
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 19:08 UTCGHSA enrichment
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-20 12:48 UTCGHSA enrichment
- 2026-06-19 20:41 UTCGHSA enrichment
- 2026-06-19 19:26 UTCEPSS rescore
- 2026-06-19 19:26 UTCEPSS rescore
Frequently asked(5)
What is CVE-2026-5241?
When was CVE-2026-5241 disclosed?
Is CVE-2026-5241 actively exploited?
What is the CVSS score of CVE-2026-5241?
How do I remediate CVE-2026-5241?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-5241
Is Your Infrastructure Affected by CVE-2026-5241?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.