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
Score 8.0 from GitHub Security Advisory (severity: HIGH) published 2026-06-03. NVD baseline CVSS 9.6; sources differ by 1.6.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.6
- EG Score
- 8.0(medium)
- EPSS
- 42.3%
- 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(2)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| 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.4.0 (214 versions) | 5.5.0 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 10× in last 7d / 77× 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 136 total refreshes for this CVE.
- 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
- 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
Show 75 moreShow fewer
- 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
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 16:33 UTCGHSA enrichment
- 2026-06-17 22:37 UTCGHSA enrichment
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-17 10:22 UTCGHSA enrichment
- 2026-06-16 22:03 UTCGHSA enrichment
- 2026-06-16 17:53 UTCEPSS rescore
- 2026-06-16 09:48 UTCGHSA enrichment
- 2026-06-15 21:33 UTCGHSA enrichment
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 09:18 UTCGHSA enrichment
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
Same CWE
10 shownCWE-829
- CVE-2020-4561EG 10.0CRITICAL
- CVE-2022-24119EG 9.8CRITICAL
- CVE-2022-1161NVD 10.0EG 9.8EPSS 91%CRITICAL
- CVE-2020-16152EG 9.8EPSS 98%CRITICAL
- CVE-2021-21804EG 9.8CRITICAL
- CVE-2020-25414EG 9.8CRITICAL
- CVE-2020-3794EG 9.8EPSS 93%CRITICAL
- CVE-2020-8128EG 9.8CRITICAL
- CVE-2012-4919EG 9.8CRITICAL
- CVE-2019-13589EG 9.8EPSS 90%CRITICAL
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.