{"id":79244,"date":"2026-06-03T17:46:46","date_gmt":"2026-06-03T14:16:46","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-5241-policy-bypass-in-lightglue-nested-config-resolution-in-huggingface-transformers\/"},"modified":"2026-06-03T17:46:46","modified_gmt":"2026-06-03T14:16:46","slug":"cve-2026-5241-policy-bypass-in-lightglue-nested-config-resolution-in-huggingface-transformers","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-5241-policy-bypass-in-lightglue-nested-config-resolution-in-huggingface-transformers\/","title":{"rendered":"CVE-2026-5241 &#8211; Policy Bypass in LightGlue Nested Config Resolution in huggingface\/transformers"},"content":{"rendered":"<p>CVE ID :CVE-2026-5241<\/p>\n<p>  Published : June 3, 2026, 2:16 p.m. | 16\u00a0minutes ago<\/p>\n<p>  Description :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.<\/p>\n<p>  Severity: 8.0 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-5241 Published : June 3, 2026, 2:16 p.m. | 16\u00a0minutes ago Description :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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-79244","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/79244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=79244"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/79244\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=79244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=79244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=79244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}