CVSS 3.1
9.6 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HCritical (9.6) in huggingface transformers. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in transformers 5.5.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:Htransformers (PyPI): fixed in 5.5.0Explain CVE-2026-5241 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-5241?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-5241?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-5241 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| huggingface/transformers | before 5.5.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-fgcw-684q-jj6r | PyPI | transformers | <5.5.0 | 5.5.0 |
| PYSEC-2026-2290 | PyPI | transformers | <=5.2.0 | no fix published |
Red Hat rates this Important.
This Important vulnerability in `python-transformers` allows for arbitrary code execution when loading a malicious LightGlue model, even if `trust_remote_code` is explicitly set to `False`. This occurs because untrusted serialized configuration data can override the security setting in nested model loading paths. Red Hat products utilizing `python-transformers` for AI/ML workloads, such as Red Hat AI Inference Server and Red Hat OpenShift AI, are affected, posing a significant risk of credential theft or system compromise if untrusted models are processed. The LightGlue model (and its vulnerable trust_remote_code handling) was introduced in transformers 4.53.0 and fixed in 5.5.0; the CNA-published affected range is all versions before 5.5.0.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat AI Inference Server 3.4 | rhaii/vllm-spyre-rhel9:1789681201 | Fixed 2026-09-21 | RHSA-2026:69464 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-cpu-rhel9:1789681128 | Fixed 2026-09-21 | RHSA-2026:69466 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-cuda-rhel9:1789681126 | Fixed 2026-09-21 | RHSA-2026:69467 |
| Red Hat AI Inference Server 3.4 | rhaii/model-opt-cuda-rhel9:1789681126 | Fixed 2026-09-21 | RHSA-2026:69468 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-rocm-rhel9:1789681126 | Fixed 2026-09-21 | RHSA-2026:69469 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-cpu-rhel9:1790075793 | Fixed 2026-09-23 | RHSA-2026:70965 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-spyre-rhel9:1790076141 | Fixed 2026-09-23 | RHSA-2026:70969 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-cuda-rhel9:1790090131 | Fixed 2026-09-23 | RHSA-2026:70979 |
| Red Hat AI Inference Server 3.4 | rhaii/vllm-rocm-rhel9:1790109620 | Fixed 2026-09-23 | RHSA-2026:70995 |
| Red Hat AI Inference Server 3.4 | rhaii/model-opt-cuda-rhel9:1790076498 | Fixed 2026-09-23 | RHSA-2026:70996 |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-ocp-rag-rhel9 | Not affected | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-service-api-rhel9 | Not affected | |
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/model-opt-cuda-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-cpu-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-cuda-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-neuron-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-rocm-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-spyre-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-tpu-rhel9 | Will not fix | |
| 66 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-5241.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-829 (13).