SB2026081250 - Inclusion of Functionality from Untrusted Control Sphere in huggingface/transformers



SB2026081250 - Inclusion of Functionality from Untrusted Control Sphere in huggingface/transformers

Published: August 12, 2026

Security Bulletin ID SB2026081250
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) Inclusion of Functionality from Untrusted Control Sphere (CVE-ID: CVE-2026-5241)

CWE-ID: CWE-829 - Inclusion of Functionality from Untrusted Control Sphere

CVSSv4: 6.4 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H]


The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists 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. A remote unauthenticated attacker can use the model repository to execute arbitrary code during model initialization.


Remediation

Install update from vendor's website.