CVE detail
CVE-2026-5241
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.
Buzz score
Why this CVE is surfacing
This all-time snapshot uses the same composite formula as Trending across a 30-year evidence window, rather than a current rolling window.
Buzz score components · mention 22.0 · diversity 14.5 · KEV 0.0 · OTX 0.0 · PoC 0.0
Why it matters now
Mention timeline
- Total mentions
- 0
- within the 30d window
- Peak daily
- 0
- highest bucket
Evidence
Source links by recency
8 source links · newest first
- https://access.redhat.com/errata/RHSA-2026:42644access.redhat.com
No excerpt available.
Vendor Advisoryaccess.redhat.comJun 3, 2026, 2:16 PM - https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5241.jsonsecurity.access.redhat.com
No excerpt available.
Vendor Advisorysecurity.access.redhat.comJun 3, 2026, 2:16 PM - https://bugzilla.redhat.com/show_bug.cgi?id=2484384bugzilla.redhat.com
No excerpt available.
Exploitbugzilla.redhat.comJun 3, 2026, 2:16 PM - https://access.redhat.com/security/cve/CVE-2026-5241access.redhat.com
No excerpt available.
Vendor Advisoryaccess.redhat.comJun 3, 2026, 2:16 PM - https://access.redhat.com/errata/RHSA-2026:37275access.redhat.com
No excerpt available.
Vendor Advisoryaccess.redhat.comJun 3, 2026, 2:16 PM - https://access.redhat.com/errata/RHSA-2026:34456access.redhat.com
No excerpt available.
Vendor Advisoryaccess.redhat.comJun 3, 2026, 2:16 PM No excerpt available.
Exploithuntr.comJun 3, 2026, 2:16 PM- https://github.com/huggingface/transformers/commit/676559d5022b74aaa0cee1cee0842b7f27c5320egithub.com
No excerpt available.
Exploitgithub.comJun 3, 2026, 2:16 PM
Exploit code
Public exploit repository references
Public PoC repositories are third-party, potentially unsafe artifacts. Treat their code as untrusted and use it only on authorized systems in an isolated, least-privilege environment. cvebuzz does not execute the code or verify that an exploit works.
0 repository references · best confidence N/A · max 0 stars
Related records
Similar CVEs
6 related CVEs with shared weakness or product evidence
- CVE-2026-66141CVSS 7.4 · High
Exim before 4.99.5 allows .forward privilege escalation because force_command for a pipe transport is mishandled.
- CVE-2026-65908CVSS 8.6 · High
In JetBrains PyCharm before 2026.1.4, 2026.2 arbitrary code execution via malicious Python executable was possible on untrusted project open
- CVE-2026-64811CVSS 7.8 · High
In JetBrains IntelliJ IDEA before 2026.2 arbitrary code execution was possible before granting project trust via development container configuration
- CVE-2026-64809CVSS 8.4 · High
In JetBrains PhpStorm before 2026.2 arbitrary code execution was possible before granting project trust via the configured interpreter
- CVE-2026-64808CVSS 8.4 · High
In JetBrains PhpStorm before 2026.2 arbitrary code execution was possible before granting project trust via project tooling
- CVE-2026-64807CVSS 7.8 · High
In JetBrains WebStorm before 2026.2 arbitrary code execution was possible via a project-supplied linter configuration