Inclusion of Functionality from Untrusted Control Sphere in transformers - CVE-2026-5241

 

Inclusion of Functionality from Untrusted Control Sphere in transformers - CVE-2026-5241

Published: August 12, 2026


Vulnerability identifier: #VU141568
CSH Severity: Medium
CVSS v4: 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]
CVE-ID: CVE-2026-5241
CWE-ID: CWE-829
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

transformers
Maximo Application Suite - Visual Inspection Component

How to mitigate CVE-2026-5241

Install updates from vendor's website.

transformers - update to 5.3.0
Maximo Application Suite - Visual Inspection Component - update to 9.2.1

External References

Related Security Bulletins