CVE-2026-5241
CVE-2026-5241 — Policy Bypass in LightGlue Nested Config Resolution in huggingface/transformers
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…
Published Updated Sources: cvelistV5, @huntr_ai
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
7.7
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (2)
Products (9)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.7 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-829
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1055Process Injection
- T1195.001Supply Chain Compromise: Software Dependencies and Development Tools
- T1505.005Server Software Component: Terminal Services DLL
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /transformers, /CD.
References
9 on the record
- huntr.com/bounties/ceb3ce1a-4c45-497a-b25e-cb9a7685e619
reference
- github.com/huggingface/transformers/commit/676559d5022b74aaa0cee1cee0842b7f27c5320e
reference
- access.redhat.com/security/cve/CVE-2026-5241
vdb-entry, x_refsource_REDHAT
- bugzilla.redhat.com/show_bug.cgi?id=2484384
issue-tracking, x_refsource_REDHAT
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5241.json
x_sadp-csaf-vex
- access.redhat.com/errata/RHSA-2026:42644
vendor-advisory, x_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:37275
vendor-advisory, x_refsource_REDHAT
- access.redhat.com/errata/RHSA-2026:34456
vendor-advisory, x_refsource_REDHAT
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-84502 Automation-controller: automation-controller-container: automation-controller: project scm_url argument injection into `git ls-remote --upload-pack` yields rce on the controller-task control-plane podCVSS 9.9
- CVE-2026-15467 Trustyai-service-operator: trustyai-service-operator: lmevaljob sidecar containers bypass protected environment variable filtering, allowing trust_remote_code policy overrideCVSS 8.1
- CVE-2026-15218 A flaw was found in the maas-api and maas-controller ServiceAccounts within Red Hat OpenShift AICVSS 7.9
- CVE-2026-0770 Langflow exec_globals Inclusion of Functionality from Untrusted Control Sphere Remote Code Execution VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-9537 ScienceLogic SL1 Unspecified VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2025-32463 Sudo Inclusion of Functionality from Untrusted Control Sphere VulnerabilityCVSS 7.8 · CISA KEV
Elsewhere on this site
- Huggingfaceevery CVE for this vendor
- Red Hatevery CVE for this vendor
- CWE-829other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.