{"id":"CVE-2026-1839","aliases":["CLSA-2026-1779065183","GHSA-69w3-r845-3855","PYSEC-2026-2288"],"summary":"Arbitrary Code Execution via Unsafe torch.load() in Trainer Checkpoint Loading in huggingface/transformers","published_at":"2026-04-07T05:22:00.959Z","modified_at":"2026-11-17T13:30:44.759226Z","products":[],"rating":{"severity":"high","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attack_path":"local","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0038799999747425318,"percentile":0.3362399935722351,"date":"2026-11-19T00:00:00Z"},"priority":6.8,"details":"A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary code execution. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True` parameter. This issue affects all versions of the library supporting `torch>=2.2` when used with PyTorch versions below 2.6, as the `safe_globals()` context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as `rng_state.pth`, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"huggingface/huggingface/transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"v5.0.0rc3"}]}],"fixed":["v5.0.0rc3"],"provider":"cvelistv5","source":"CVE-2026-1839","relation":"self"},{"ecosystem":"NVD","package":"huggingface:transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"fixed":["5.0.0"],"provider":"nvd","source":"CVE-2026-1839","relation":"self"},{"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0rc3"}]}],"versions":["0.1","2.0.0","2.1.0","2.1.1","2.10.0","2.11.0","2.2.0","2.2.1","2.2.2","2.3.0","2.4.0","2.4.1","2.5.0","2.5.1","2.6.0","2.7.0","2.8.0","2.9.0","2.9.1","3.0.0","3.0.1","3.0.2","3.1.0","3.2.0","3.3.0","3.3.1","3.4.0","3.5.0","3.5.1","4.0.0","4.0.0rc1","4.0.1","4.1.0","4.1.1","4.10.0","4.10.1","4.10.2","4.10.3","4.11.0","4.11.1","4.11.2","4.11.3","4.12.0","4.12.1","4.12.2","4.12.3","4.12.4","4.12.5","4.13.0","4.14.0","4.14.1","4.15.0","4.16.0","4.16.1","4.16.2","4.17.0","4.18.0","4.19.0","4.19.1","4.19.2","4.19.3","4.19.4","4.2.0","4.2.1","4.2.2","4.20.0","4.20.1","4.21.0","4.21.1","4.21.2","4.21.3","4.22.0","4.22.1","4.22.2","4.23.0","4.23.1","4.24.0","4.25.0","4.25.1","4.26.0","4.26.1","4.27.0","4.27.1","4.27.2","4.27.3","4.27.4","4.28.0","4.28.1","4.29.0","4.29.1","4.29.2","4.3.0","4.3.0rc1","4.3.1","4.3.2","4.3.3","4.30.0","4.30.1","4.30.2","4.31.0","4.32.0","4.32.1","4.33.0","4.33.1","4.33.2","4.33.3","4.34.0","4.34.1","4.35.0","4.35.1","4.35.2","4.36.0","4.36.1","4.36.2","4.37.0","4.37.1","4.37.2","4.38.0","4.38.1","4.38.2","4.39.0","4.39.1","4.39.2","4.39.3","4.4.0","4.4.1","4.4.2","4.40.0","4.40.1","4.40.2","4.41.0","4.41.1","4.41.2","4.42.0","4.42.1","4.42.2","4.42.3","4.42.4","4.43.0","4.43.1","4.43.2","4.43.3","4.43.4","4.44.0","4.44.1","4.44.2","4.45.0","4.45.1","4.45.2","4.46.0","4.46.1","4.46.2","4.46.3","4.47.0","4.47.1","4.48.0","4.48.1","4.48.2","4.48.3","4.49.0","4.5.0","4.5.1","4.50.0","4.50.1","4.50.2","4.50.3","4.51.0","4.51.1","4.51.2","4.51.3","4.52.0","4.52.1","4.52.2","4.52.3","4.52.4","4.53.0","4.53.1","4.53.2","4.53.3","4.54.0","4.54.1","4.55.0","4.55.1","4.55.2","4.55.3","4.55.4","4.56.0","4.56.1","4.56.2","4.57.0","4.57.1","4.57.2","4.57.3","4.57.4","4.57.5","4.57.6","4.6.0","4.6.1","4.7.0","4.8.0","4.8.1","4.8.2","4.9.0","4.9.1","4.9.2","5.0.0rc0","5.0.0rc1","5.0.0rc2"],"fixed":["5.0.0rc3"],"provider":"osv","source":"GHSA-69w3-r845-3855","relation":"self"},{"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"versions":["0.1","2.0.0","2.1.0","2.1.1","2.10.0","2.11.0","2.2.0","2.2.1","2.2.2","2.3.0","2.4.0","2.4.1","2.5.0","2.5.1","2.6.0","2.7.0","2.8.0","2.9.0","2.9.1","3.0.0","3.0.1","3.0.2","3.1.0","3.2.0","3.3.0","3.3.1","3.4.0","3.5.0","3.5.1","4.0.0","4.0.0rc1","4.0.1","4.1.0","4.1.1","4.10.0","4.10.1","4.10.2","4.10.3","4.11.0","4.11.1","4.11.2","4.11.3","4.12.0","4.12.1","4.12.2","4.12.3","4.12.4","4.12.5","4.13.0","4.14.0","4.14.1","4.15.0","4.16.0","4.16.1","4.16.2","4.17.0","4.18.0","4.19.0","4.19.1","4.19.2","4.19.3","4.19.4","4.2.0","4.2.1","4.2.2","4.20.0","4.20.1","4.21.0","4.21.1","4.21.2","4.21.3","4.22.0","4.22.1","4.22.2","4.23.0","4.23.1","4.24.0","4.25.0","4.25.1","4.26.0","4.26.1","4.27.0","4.27.1","4.27.2","4.27.3","4.27.4","4.28.0","4.28.1","4.29.0","4.29.1","4.29.2","4.3.0","4.3.0rc1","4.3.1","4.3.2","4.3.3","4.30.0","4.30.1","4.30.2","4.31.0","4.32.0","4.32.1","4.33.0","4.33.1","4.33.2","4.33.3","4.34.0","4.34.1","4.35.0","4.35.1","4.35.2","4.36.0","4.36.1","4.36.2","4.37.0","4.37.1","4.37.2","4.38.0","4.38.1","4.38.2","4.39.0","4.39.1","4.39.2","4.39.3","4.4.0","4.4.1","4.4.2","4.40.0","4.40.1","4.40.2","4.41.0","4.41.1","4.41.2","4.42.0","4.42.1","4.42.2","4.42.3","4.42.4","4.43.0","4.43.1","4.43.2","4.43.3","4.43.4","4.44.0","4.44.1","4.44.2","4.45.0","4.45.1","4.45.2","4.46.0","4.46.1","4.46.2","4.46.3","4.47.0","4.47.1","4.48.0","4.48.1","4.48.2","4.48.3","4.49.0","4.5.0","4.5.1","4.50.0","4.50.1","4.50.2","4.50.3","4.51.0","4.51.1","4.51.2","4.51.3","4.52.0","4.52.1","4.52.2","4.52.3","4.52.4","4.53.0","4.53.1","4.53.2","4.53.3","4.54.0","4.54.1","4.55.0","4.55.1","4.55.2","4.55.3","4.55.4","4.56.0","4.56.1","4.56.2","4.57.0","4.57.1","4.57.2","4.57.3","4.57.4","4.57.5","4.57.6","4.6.0","4.6.1","4.7.0","4.8.0","4.8.1","4.8.2","4.9.0","4.9.1","4.9.2","5.0.0rc0","5.0.0rc1","5.0.0rc2","5.0.0rc3"],"fixed":["5.0.0"],"provider":"osv","source":"PYSEC-2026-2288","relation":"self"},{"ecosystem":"TuxCare:PyPI","package":"transformers","purl":"pkg:pypi/transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.57.6.post0"},{"fixed":"4.57.6.post1+tuxcare"}]}],"versions":["4.57.6"],"fixed":["4.57.6.post1+tuxcare"],"provider":"osv","source":"CLSA-2026-1779065183","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Lightspeed Core","cpe":"cpe:/a:redhat:lightspeed_core","status":"affected","packages":["openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9","redhat-user-workloads/lightspeed-core-tenant/lightspeed-stack"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"OpenShift Lightspeed","cpe":"cpe:/a:redhat:openshift_lightspeed:1","status":"affected","packages":["openshift-lightspeed/lightspeed-ocp-rag-rhel9","openshift-lightspeed/lightspeed-service-api-rhel9","redhat-user-workloads/crt-nshift-lightspeed-tenant/lightspeed-rag-tool"],"package_count":3,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"Red Hat AI Inference Server","cpe":"cpe:/a:redhat:ai_inference_server:3","status":"affected","packages":["redhat-user-workloads/ai-tenant/rhaiis-3-2-2/rhaiis-cuda-ubi9-3-2-2","redhat-user-workloads/ai-tenant/rhaiis-3-2-2/rhaiis-model-opt-cuda-ubi9-3-2-2","redhat-user-workloads/ai-tenant/rhaiis-3-2-2/rhaiis-rocm-ubi9-3-2-2","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-cpu-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-cuda-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-model-opt-cuda-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-neuron-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-rocm-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-spyre-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-tpu-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis/rhaiis-spyre-ubi9","redhat-user-workloads/ai-tenant/rhaiis/rhaiis-tpu-ubi9"],"package_count":12,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-25/lightspeed-chatbot-rhel8","redhat-user-workloads/ansible-tenant/ansible-automation-platform-26/lightspeed-chatbot-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["redhat-user-workloads/rhel-ai-tenant/rhelai-bootc-3-3/bootc-cuda-aws-3-3","redhat-user-workloads/rhel-ai-tenant/rhelai-bootc-3-3/bootc-cuda-azure-3-3","redhat-user-workloads/rhel-ai-tenant/rhelai-bootc-3-3/bootc-cuda-gcp-3-3","redhat-user-workloads/rhel-ai-tenant/rhelai-bootc-3-3/bootc-rocm-azure-3-3","rhelai3/bootc-cuda-rhel9","rhelai3/bootc-rocm-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":7,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-built-in-detector-rhel9","rhoai/odh-caikit-nlp-rhel9","rhoai/odh-caikit-tgis-serving-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-openvino-model-server-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-ta-lmes-job-rhel9","rhoai/odh-training-cuda121-torch24-py311-rhel9","rhoai/odh-training-cuda124-torch25-py311-rhel9","rhoai/odh-training-cuda128-torch28-py312-rhel9","rhoai/odh-training-cuda128-torch29-py312-rhel9","rhoai/odh-training-rocm62-torch24-py311-rhel9","rhoai/odh-training-rocm62-torch25-py311-rhel9","rhoai/odh-training-rocm64-torch28-py312-rhel9","rhoai/odh-training-rocm64-torch29-py312-rhel9","rhoai/odh-trustyai-nemo-guardrails-server-rhel9","rhoai/odh-vllm-cuda-rhel9","rhoai/odh-vllm-gaudi-rhel9","rhoai/odh-vllm-rocm-rhel9"],"package_count":27,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-1839","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-1839","license":"CC-BY-4.0","published_at":"2026-04-07T05:22:00.959Z","modified_at":"2026-04-07T13:27:41.789Z","summary":"Arbitrary Code Execution via Unsafe torch.load() in Trainer Checkpoint Loading in huggingface/transformers","details":"A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary code execution. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True` parameter. This issue affects all versions of the library supporting `torch>=2.2` when used with PyTorch versions below 2.6, as the `safe_globals()` context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as `rng_state.pth`, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:H","source":"CVE-2026-1839"}],"affected":[{"ecosystem":"CVE","package":"huggingface/huggingface/transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"v5.0.0rc3"}]}],"fixed":["v5.0.0rc3"],"provider":"cvelistv5","source":"CVE-2026-1839","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485"},{"type":"WEB","url":"https://github.com/huggingface/transformers/commit/03c8082ba4594c9b8d6fe190ca9bed0e5f8ca396"}]},{"provider":"nvd","source_id":"CVE-2026-1839","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1839","severity":[],"affected":[{"ecosystem":"NVD","package":"huggingface:transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"fixed":["5.0.0"],"provider":"nvd","source":"CVE-2026-1839","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1779065183","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1779065183","published_at":"2026-08-04T14:52:31Z","modified_at":"2026-11-17T13:30:44.759226Z","summary":"TuxCare security update for transformers (1 CVE)","details":"TuxCare rebuilt transformers to address 1 CVE. Fixed in 4.57.6.post1+tuxcare.","severity":[],"affected":[{"ecosystem":"TuxCare:PyPI","package":"transformers","purl":"pkg:pypi/transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.57.6.post0"},{"fixed":"4.57.6.post1+tuxcare"}]}],"versions":["4.57.6"],"fixed":["4.57.6.post1+tuxcare"],"provider":"osv","source":"CLSA-2026-1779065183","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-69w3-r845-3855","relation":"self","url":"https://osv.dev/vulnerability/GHSA-69w3-r845-3855","license":"CC-BY-4.0","published_at":"2026-04-07T06:30:28Z","modified_at":"2026-09-10T03:50:43.300048Z","summary":"HuggingFace Transformers allows for arbitrary code execution in the `Trainer` class","details":"A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary code execution. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True` parameter. This issue affects all versions of the library supporting `torch>=2.2` when used with PyTorch versions below 2.6, as the `safe_globals()` context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as `rng_state.pth`, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:H","source":"GHSA-69w3-r845-3855"}],"affected":[{"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0rc3"}]}],"versions":["0.1","2.0.0","2.1.0","2.1.1","2.10.0","2.11.0","2.2.0","2.2.1","2.2.2","2.3.0","2.4.0","2.4.1","2.5.0","2.5.1","2.6.0","2.7.0","2.8.0","2.9.0","2.9.1","3.0.0","3.0.1","3.0.2","3.1.0","3.2.0","3.3.0","3.3.1","3.4.0","3.5.0","3.5.1","4.0.0","4.0.0rc1","4.0.1","4.1.0","4.1.1","4.10.0","4.10.1","4.10.2","4.10.3","4.11.0","4.11.1","4.11.2","4.11.3","4.12.0","4.12.1","4.12.2","4.12.3","4.12.4","4.12.5","4.13.0","4.14.0","4.14.1","4.15.0","4.16.0","4.16.1","4.16.2","4.17.0","4.18.0","4.19.0","4.19.1","4.19.2","4.19.3","4.19.4","4.2.0","4.2.1","4.2.2","4.20.0","4.20.1","4.21.0","4.21.1","4.21.2","4.21.3","4.22.0","4.22.1","4.22.2","4.23.0","4.23.1","4.24.0","4.25.0","4.25.1","4.26.0","4.26.1","4.27.0","4.27.1","4.27.2","4.27.3","4.27.4","4.28.0","4.28.1","4.29.0","4.29.1","4.29.2","4.3.0","4.3.0rc1","4.3.1","4.3.2","4.3.3","4.30.0","4.30.1","4.30.2","4.31.0","4.32.0","4.32.1","4.33.0","4.33.1","4.33.2","4.33.3","4.34.0","4.34.1","4.35.0","4.35.1","4.35.2","4.36.0","4.36.1","4.36.2","4.37.0","4.37.1","4.37.2","4.38.0","4.38.1","4.38.2","4.39.0","4.39.1","4.39.2","4.39.3","4.4.0","4.4.1","4.4.2","4.40.0","4.40.1","4.40.2","4.41.0","4.41.1","4.41.2","4.42.0","4.42.1","4.42.2","4.42.3","4.42.4","4.43.0","4.43.1","4.43.2","4.43.3","4.43.4","4.44.0","4.44.1","4.44.2","4.45.0","4.45.1","4.45.2","4.46.0","4.46.1","4.46.2","4.46.3","4.47.0","4.47.1","4.48.0","4.48.1","4.48.2","4.48.3","4.49.0","4.5.0","4.5.1","4.50.0","4.50.1","4.50.2","4.50.3","4.51.0","4.51.1","4.51.2","4.51.3","4.52.0","4.52.1","4.52.2","4.52.3","4.52.4","4.53.0","4.53.1","4.53.2","4.53.3","4.54.0","4.54.1","4.55.0","4.55.1","4.55.2","4.55.3","4.55.4","4.56.0","4.56.1","4.56.2","4.57.0","4.57.1","4.57.2","4.57.3","4.57.4","4.57.5","4.57.6","4.6.0","4.6.1","4.7.0","4.8.0","4.8.1","4.8.2","4.9.0","4.9.1","4.9.2","5.0.0rc0","5.0.0rc1","5.0.0rc2"],"fixed":["5.0.0rc3"],"provider":"osv","source":"GHSA-69w3-r845-3855","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1839"},{"type":"WEB","url":"https://github.com/huggingface/transformers/commit/03c8082ba4594c9b8d6fe190ca9bed0e5f8ca396"},{"type":"PACKAGE","url":"https://github.com/huggingface/transformers"},{"type":"WEB","url":"https://github.com/huggingface/transformers/releases/tag/v5.0.0rc3"},{"type":"WEB","url":"https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485"}]},{"provider":"osv","source_id":"PYSEC-2026-2288","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2288","license":"CC-BY-4.0","published_at":"2026-04-07T06:16:41.49Z","modified_at":"2026-07-13T16:45:06.516869Z","details":"A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary code execution. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True` parameter. This issue affects all versions of the library supporting `torch>=2.2` when used with PyTorch versions below 2.6, as the `safe_globals()` context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as `rng_state.pth`, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"PYSEC-2026-2288"}],"affected":[{"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"versions":["0.1","2.0.0","2.1.0","2.1.1","2.10.0","2.11.0","2.2.0","2.2.1","2.2.2","2.3.0","2.4.0","2.4.1","2.5.0","2.5.1","2.6.0","2.7.0","2.8.0","2.9.0","2.9.1","3.0.0","3.0.1","3.0.2","3.1.0","3.2.0","3.3.0","3.3.1","3.4.0","3.5.0","3.5.1","4.0.0","4.0.0rc1","4.0.1","4.1.0","4.1.1","4.10.0","4.10.1","4.10.2","4.10.3","4.11.0","4.11.1","4.11.2","4.11.3","4.12.0","4.12.1","4.12.2","4.12.3","4.12.4","4.12.5","4.13.0","4.14.0","4.14.1","4.15.0","4.16.0","4.16.1","4.16.2","4.17.0","4.18.0","4.19.0","4.19.1","4.19.2","4.19.3","4.19.4","4.2.0","4.2.1","4.2.2","4.20.0","4.20.1","4.21.0","4.21.1","4.21.2","4.21.3","4.22.0","4.22.1","4.22.2","4.23.0","4.23.1","4.24.0","4.25.0","4.25.1","4.26.0","4.26.1","4.27.0","4.27.1","4.27.2","4.27.3","4.27.4","4.28.0","4.28.1","4.29.0","4.29.1","4.29.2","4.3.0","4.3.0rc1","4.3.1","4.3.2","4.3.3","4.30.0","4.30.1","4.30.2","4.31.0","4.32.0","4.32.1","4.33.0","4.33.1","4.33.2","4.33.3","4.34.0","4.34.1","4.35.0","4.35.1","4.35.2","4.36.0","4.36.1","4.36.2","4.37.0","4.37.1","4.37.2","4.38.0","4.38.1","4.38.2","4.39.0","4.39.1","4.39.2","4.39.3","4.4.0","4.4.1","4.4.2","4.40.0","4.40.1","4.40.2","4.41.0","4.41.1","4.41.2","4.42.0","4.42.1","4.42.2","4.42.3","4.42.4","4.43.0","4.43.1","4.43.2","4.43.3","4.43.4","4.44.0","4.44.1","4.44.2","4.45.0","4.45.1","4.45.2","4.46.0","4.46.1","4.46.2","4.46.3","4.47.0","4.47.1","4.48.0","4.48.1","4.48.2","4.48.3","4.49.0","4.5.0","4.5.1","4.50.0","4.50.1","4.50.2","4.50.3","4.51.0","4.51.1","4.51.2","4.51.3","4.52.0","4.52.1","4.52.2","4.52.3","4.52.4","4.53.0","4.53.1","4.53.2","4.53.3","4.54.0","4.54.1","4.55.0","4.55.1","4.55.2","4.55.3","4.55.4","4.56.0","4.56.1","4.56.2","4.57.0","4.57.1","4.57.2","4.57.3","4.57.4","4.57.5","4.57.6","4.6.0","4.6.1","4.7.0","4.8.0","4.8.1","4.8.2","4.9.0","4.9.1","4.9.2","5.0.0rc0","5.0.0rc1","5.0.0rc2","5.0.0rc3"],"fixed":["5.0.0"],"provider":"osv","source":"PYSEC-2026-2288","relation":"self"}],"product_status":[],"references":[{"type":"FIX","url":"https://github.com/huggingface/transformers/commit/03c8082ba4594c9b8d6fe190ca9bed0e5f8ca396"},{"type":"EVIDENCE","url":"https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-69w3-r845-3855"}]},{"provider":"redhat-vex","source_id":"CVE-2026-1839","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-1839","license":"CC-BY-4.0","published_at":"2026-04-07T05:22:00.959Z","modified_at":"2026-04-29T05:04:18Z","summary":"transformers: HuggingFace Transformers: Arbitrary code execution via malicious checkpoint file","details":"A flaw was found in HuggingFace Transformers. A remote attacker can exploit this vulnerability by supplying a specially crafted checkpoint file (e.g., `rng_state.pth`). The `_load_rng_state()` method in the `Trainer` class loads this file using `torch.load()` without proper validation, specifically missing the `weights_only=True` parameter. This issue primarily affects systems using PyTorch versions below 2.6. Successful exploitation can lead to arbitrary code execution on the system where the file is loaded.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","source":"CVE-2026-1839"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-1839"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Lightspeed Core","cpe":"cpe:/a:redhat:lightspeed_core","status":"affected","packages":["openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9","redhat-user-workloads/lightspeed-core-tenant/lightspeed-stack"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"OpenShift Lightspeed","cpe":"cpe:/a:redhat:openshift_lightspeed:1","status":"affected","packages":["openshift-lightspeed/lightspeed-ocp-rag-rhel9","openshift-lightspeed/lightspeed-service-api-rhel9","redhat-user-workloads/crt-nshift-lightspeed-tenant/lightspeed-rag-tool"],"package_count":3,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"Red Hat AI Inference Server","cpe":"cpe:/a:redhat:ai_inference_server:3","status":"affected","packages":["redhat-user-workloads/ai-tenant/rhaiis-3-2-2/rhaiis-cuda-ubi9-3-2-2","redhat-user-workloads/ai-tenant/rhaiis-3-2-2/rhaiis-model-opt-cuda-ubi9-3-2-2","redhat-user-workloads/ai-tenant/rhaiis-3-2-2/rhaiis-rocm-ubi9-3-2-2","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-cpu-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-cuda-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-model-opt-cuda-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-neuron-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-rocm-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-spyre-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis-3-3/rhaiis-tpu-ubi9-3-3","redhat-user-workloads/ai-tenant/rhaiis/rhaiis-spyre-ubi9","redhat-user-workloads/ai-tenant/rhaiis/rhaiis-tpu-ubi9"],"package_count":12,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-25/lightspeed-chatbot-rhel8","redhat-user-workloads/ansible-tenant/ansible-automation-platform-26/lightspeed-chatbot-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["redhat-user-workloads/rhel-ai-tenant/rhelai-bootc-3-3/bootc-cuda-aws-3-3","redhat-user-workloads/rhel-ai-tenant/rhelai-bootc-3-3/bootc-cuda-azure-3-3","redhat-user-workloads/rhel-ai-tenant/rhelai-bootc-3-3/bootc-cuda-gcp-3-3","redhat-user-workloads/rhel-ai-tenant/rhelai-bootc-3-3/bootc-rocm-azure-3-3","rhelai3/bootc-cuda-rhel9","rhelai3/bootc-rocm-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":7,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-built-in-detector-rhel9","rhoai/odh-caikit-nlp-rhel9","rhoai/odh-caikit-tgis-serving-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-openvino-model-server-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-ta-lmes-job-rhel9","rhoai/odh-training-cuda121-torch24-py311-rhel9","rhoai/odh-training-cuda124-torch25-py311-rhel9","rhoai/odh-training-cuda128-torch28-py312-rhel9","rhoai/odh-training-cuda128-torch29-py312-rhel9","rhoai/odh-training-rocm62-torch24-py311-rhel9","rhoai/odh-training-rocm62-torch25-py311-rhel9","rhoai/odh-training-rocm64-torch28-py312-rhel9","rhoai/odh-training-rocm64-torch29-py312-rhel9","rhoai/odh-trustyai-nemo-guardrails-server-rhel9","rhoai/odh-vllm-cuda-rhel9","rhoai/odh-vllm-gaudi-rhel9","rhoai/odh-vllm-rocm-rhel9"],"package_count":27,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-1839"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1839.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-1839"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2455854"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-1839"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1839"},{"type":"WEB","url":"https://github.com/huggingface/transformers/commit/03c8082ba4594c9b8d6fe190ca9bed0e5f8ca396"},{"type":"WEB","url":"https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485"}]}],"references":[{"type":"WEB","url":"https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485"},{"type":"WEB","url":"https://github.com/huggingface/transformers/commit/03c8082ba4594c9b8d6fe190ca9bed0e5f8ca396"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1839"},{"type":"PACKAGE","url":"https://github.com/huggingface/transformers"},{"type":"WEB","url":"https://github.com/huggingface/transformers/releases/tag/v5.0.0rc3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-69w3-r845-3855"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1839.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-1839"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2455854"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-1839"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-1839","url":"https://www.cve.org/CVERecord?id=CVE-2026-1839","license":"CC-BY-4.0","modified_at":"2026-04-07T13:27:41.789Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-1839","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1839","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1779065183","url":"https://osv.dev/vulnerability/CLSA-2026-1779065183","modified_at":"2026-11-17T13:30:44.759226Z","relation":"self"},{"provider":"osv","source_id":"GHSA-69w3-r845-3855","url":"https://osv.dev/vulnerability/GHSA-69w3-r845-3855","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:43.300048Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2288","url":"https://osv.dev/vulnerability/PYSEC-2026-2288","license":"CC-BY-4.0","modified_at":"2026-07-13T16:45:06.516869Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-1839","url":"https://access.redhat.com/security/cve/CVE-2026-1839","license":"CC-BY-4.0","modified_at":"2026-04-29T05:04:18Z","relation":"self"}]}
