VDB

CVE-2026-5241

CVE-2026-5241 PUBLISHED CVSS 8 HIGH

Reported by @huntr_ai · Published June 3, 2026

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.

Risk Scores

CVSS 3.0
8
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

Affected Products

VendorProductVersions
huggingfacehuggingface/transformersunspecified
Red HatRed Hat OpenShift AI 3.41782136276
Red HatRed Hat AI Inference Server
Red HatRed Hat OpenShift AI (RHOAI)
Red HatRed Hat OpenShift AI 3.41786611435
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat OpenShift AI 3.41782135346
Red HatRed Hat OpenShift AI (RHOAI)
Red HatRed Hat Enterprise Linux AI (RHEL AI) 3
Red HatRed Hat OpenShift AI 3.41782132167
Red HatRed Hat Enterprise Linux AI (RHEL AI) 3
Red HatRed Hat Enterprise Linux AI (RHEL AI) 3
Red HatRed Hat OpenShift AI (RHOAI)
Red HatRed Hat OpenShift AI (RHOAI)
Red HatRed Hat OpenShift AI 2.251782475830
Red HatRed Hat OpenShift AI (RHOAI)
Red HatRed Hat AI Inference Server
Red HatRed Hat OpenShift AI 3.31782991170
Red HatRed Hat OpenShift AI 3.41782135464
Red HatRed Hat OpenShift AI (RHOAI)

…and 72 more

Timeline

  • Jun 3, 2026 CVE Published
  • Jun 4, 2026 Coalition ESS Score
  • Jun 5, 2026 EPSS Score
  • Jun 8, 2026 Security Advisory
  • Aug 7, 2026 EPSS Score
  • Aug 8, 2026 Distribution Patch
  • Aug 8, 2026 Distribution Patch
  • Aug 8, 2026 Security Advisory
  • Aug 8, 2026 Security Advisory
  • Aug 20, 2026 Distribution Patch
  • Aug 20, 2026 Security Advisory
  • Aug 24, 2026 EPSS Score
Open in Interactive Console →
$ Console Community · 50/day Open console ›