CVE-2026-5241: Vulnerability in Huggingface Transformers
Critical. 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...
PyPI, CWE-829
- Exploitation
- None confirmed
- Severity
- 9.6 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-fgcw-684q-jj6r
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Weakness
- CWE-829
- Published
- 3 Jun 2026
- Last change
- 28 Aug 2026
- Ecosystem
- PyPI
Affected products
Affected versions and the first fixed release
- Huggingface Transformers Version 5.2.0. No fixed version recorded
Affected packages
Vulnerable version ranges and fixed releases
- transformers PyPI, Affected before 5.5.0. Fixed in 5.5.0
Advisories
Vendor and security advisories
- huntr.com/bounties/ceb3ce1a-4c45-497a-b25e-cb9a7685e619
- access.redhat.com/security/cve/CVE-2026-5241
- bugzilla.redhat.com/show_bug.cgi
Patches and fixes
Updates, commits and release notes
Related
- Transformers vulnerabilities Recent advisories, watch this product