{"id":"CVE-2025-24357","aliases":["CVE-2025-24357","GHSA-rh4j-5rhw-hr54","PYSEC-2025-58"],"related":[],"kind":"vulnerability","state":"published","title":"vLLM allows a malicious model RCE by torch.load in hf_model_weights_iterator","summary":"vLLM is a library for LLM inference and serving. vllm/model_executor/weight_utils.py implements hf_model_weights_iterator to load the model checkpoint, which is downloaded from huggingface. It uses the torch.load function and the weights_only parameter defaults to False. When torch.load loads malicious pickle data, it will execute arbitrary code during unpickling. This vulnerability is fixed in v0.7.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"vLLM is a library for LLM inference and serving. vllm/model_executor/weight_utils.py implements hf_model_weights_iterator to load the model checkpoint, which is downloaded from huggingface. It uses the torch.load function and the weights_only parameter defaults to False. When torch.load loads malicious pickle data, it will execute arbitrary code during unpickling. This vulnerability is fixed in v0.7.0.","source":"cvelist"},{"lang":"en","text":"### Description\nThe vllm/model_executor/weight_utils.py implements hf_model_weights_iterator to load the model checkpoint, which is downloaded from huggingface. It use torch.load function and weights_only parameter is default value False. There is a security warning on https://pytorch.org/docs/stable/generated/torch.load.html, when torch.load load a malicious pickle data it will execute arbitrary code during unpickling.\n\n### Impact\nThis vulnerability can be exploited to execute arbitrary codes and OS commands in the victim machine who fetch the pretrained repo remotely.\n\nNote that most models now use the safetensors format, which is not vulnerable to this issue.\n\n### References\n* https://pytorch.org/docs/stable/generated/torch.load.html\n* Fix: https://github.com/vllm-project/vllm/pull/12366","format":"markdown","source":"ghsa"},{"lang":"es","text":"vLLM es una librería para la inferencia y el servicio de LLM. vllm/model_executor/weight_utils.py implementa hf_model_weights_iterator para cargar el punto de control del modelo, que se descarga desde huggingface. Utiliza la función Torch.load y el parámetro weights_only tiene el valor predeterminado Falso. Cuando Torch.load carga datos pickle maliciosos, ejecutará código arbitrario durante el desensamblaje. Esta vulnerabilidad se corrigió en la versión v0.7.0.","source":"nvd"}],"published":"2025-01-27T17:38:20.070Z","modified":"2026-08-07T08:12:18.227Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"< 0.7.0","status":"affected"}],"vendor":"vllm-project","product":"vllm","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.0"}],"ecosystem":"PyPI","package":"vllm","purl":"pkg:pypi/vllm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.7.0"}],"vendor":"vllm","product":"vllm","cpe":"cpe:2.3:a:vllm:vllm:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"d3d6bb13fb62da3234addf6574922a4ec0513d04"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.0"}],"ecosystem":"PyPI","package":"vllm","purl":"pkg:pypi/vllm","repo":"https://github.com/vllm-project/vllm","source":"pysec"}],"references":[{"url":"https://github.com/vllm-project/vllm/security/advisories/GHSA-rh4j-5rhw-hr54","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/vllm-project/vllm/pull/12366","tags":["issue-tracking","patch","report","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/vllm-project/vllm/commit/d3d6bb13fb62da3234addf6574922a4ec0513d04","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://pytorch.org/docs/stable/generated/torch.load.html","tags":["technical-description","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24357","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2025-58.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vllm-project/vllm","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/vllm-project/vllm/releases/tag/v0.7.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-01-27T18:20:10.107Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-24357","url":"https://www.cve.org/CVERecord?id=CVE-2025-24357","licence":"CVE Terms of Use","modified":"2025-02-12T20:41:36.324Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rh4j-5rhw-hr54","url":"https://github.com/advisories/GHSA-rh4j-5rhw-hr54","licence":"CC-BY-4.0","modified":"2026-08-07T08:12:18.227Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-24357","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24357","licence":"Public domain","modified":"2026-06-17T08:58:39.307Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-58","url":"https://osv.dev/vulnerability/PYSEC-2025-58","licence":"CC-BY-4.0","modified":"2025-06-27T21:56:54.188Z"}],"updatedAt":"2026-11-25T22:58:53.619Z","epss":{"score":0.00893,"percentile":0.60527,"date":"2026-12-01T12:00:22.000Z"}}