HuggingFace transformers vulnerable to arbitrary code execution in LightGlue loader
Attack on AI2 Disclosed vulnerabilityInfrastructure vulnerability
A vulnerability in the LightGlue model loading path of HuggingFace transformers overrides safety parameters using untrusted config data. This allows an attacker-controlled repository to execute arbitrary code during model initialization.
disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why
Details
- type
- Attack on AIAn AI model, agent or AI-powered product was the thing exploited, abused or leaked.
- categories
- Infrastructure vulnerabilityCVEs and advisories in AI frameworks, inference servers, MCP servers, AI developer tools and hosting stacks.
- Infrastructure vulnerability
- owasp llm top 10
- mitre atlas
- no technique for these categoriesBoth rows are derived from the type and categories (OWASP 2025 edition, ATLAS release 2026.09), not classified per record. How
- severity
- 2 · Disclosed vulnerabilityCVE or vendor advisory, patched or patchable, no confirmed exploitation.
- targets
- Framework / tooling
- products
- transformers
- incident date
- 3 Jun 2026
- first reported
- 3 Jun 2026
- origin
- GitHub Advisory DatabaseVulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
- classifier confidence
- 0.95 · published at or above 0.80; see the methodology
- tags
- CVE-2026-5241 · rce · model_loading
- record
- created 2026-10-18 07:00Z · updated 2026-10-18 07:00Z · json
Sources · 1
- 2026-06-03CVE-2026-5241: huggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading PathGitHub Advisory Database · github.com/advisories/GHSA-fgcw-684q-jj6r
Titles and links belong to their publishers. The summary above is written by GCD AI RADAR in its own words; data is CC BY-SA 4.0.
Related incidents
- 2026-05-26HuggingFace transformers vulnerable to remote code execution via config.json2 Disclosedon AIInfra vuln1 src
- 2025-09-23CVE-2025-6921: Hugging Face Transformers vulnerable to ReDoS in optimizer2 Disclosedon AIInfra vuln1 src
- 2025-09-12CVE-2025-6638: Hugging Face Transformers vulnerable to ReDoS via MarianTokenizer2 Disclosedon AIInfra vuln2 src
- 2025-07-07Hugging Face Transformers vulnerable to ReDoS in configuration utils2 Disclosedon AIInfra vuln2 src
- 2025-07-07Hugging Face Transformers vulnerable to ReDoS in get_imports2 Disclosedon AIInfra vuln2 src
- 2025-07-07Hugging Face Transformers vulnerable to ReDoS in SETTING_RE2 Disclosedon AIInfra vuln1 src