CVE-2026-5241: A vulnerability in the LightGlue model loading path of huggingface/transformers version 5.2.0 allows an attack
CVE-2026-5241 is a critical-severity flaw (CVSS 9.6) affecting transformers. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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_pret
Why this priority
- Critical severity
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 9.6 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.6% (top 52%) |
| CISA exploited list | No |
| Weakness | CWE-829 |
| Published | 2026-06-03 |
| Last modified | 2026-08-28 |
Last updated 2026-08-28 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-5241?
transformers: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2026-5241 being exploited?
CVE-2026-5241 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-5241 affect?
CVE-2026-5241 affects transformers. Severity is critical (CVSS 9.6). 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_c
How urgent is CVE-2026-5241?
Priority 51/100. Critical severity; Public exploit reference
Related CVEs
- CVE-2026-1839 HIGH 7.8 UPGRADE A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbit