{"id":"CVE-2025-24357","published":"2025-01-27T17:38:20Z","modified":"2025-02-12T20:41:36Z","title":"vLLM allows a malicious model RCE by torch.load in hf_model_weights_iterator","vendor":"vllm-project","product":"vllm","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01814,"percentile":0.79175,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/vllm-project/vllm/security/advisories/GHSA-rh4j-5rhw-hr54","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vllm-project/vllm/pull/12366","tags":["x_refsource_MISC"]},{"url":"https://github.com/vllm-project/vllm/commit/d3d6bb13fb62da3234addf6574922a4ec0513d04","tags":["x_refsource_MISC"]},{"url":"https://pytorch.org/docs/stable/generated/torch.load.html","tags":["x_refsource_MISC"]}],"priority":{"score":21.1,"factors":[{"name":"EPSS percentile","points":15.83},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"vllm-project","affectedVersions":[{"vendor":"vllm-project","product":"vllm","versions":["< 0.7.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-01-27T18:20:10.107207Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vllm","vulnerableRanges":["<0.7.0"],"patched":["0.7.0"],"from":["GHSA-rh4j-5rhw-hr54","PYSEC-2025-58"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-0192","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vllm-project-vllm-cve-2025-24357","children":[{"from":"CVE-2025-24357","to":"CVE-2025-48887","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["vllm/lora/models.py"],"commits":["https://github.com/vllm-project/vllm/commit/d3d6bb13fb62da3234addf6574922a4ec0513d04","https://github.com/vllm-project/vllm/commit/4fc1bf813ad80172c1db31264beaef7d93fe0601"],"basis":"rarely changed file"}]},{"from":"CVE-2025-24357","to":"CVE-2025-71379","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["vllm/lora/models.py"],"commits":["https://github.com/vllm-project/vllm/commit/d3d6bb13fb62da3234addf6574922a4ec0513d04","https://github.com/vllm-project/vllm/commit/4fc1bf813ad80172c1db31264beaef7d93fe0601"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-8768","published":"2024-09-17","fixed":"0.5.5","kev":false},{"cve":"CVE-2025-24357","published":"2025-01-27","fixed":"0.7.0","kev":false},{"cve":"CVE-2025-25183","published":"2025-02-07","fixed":"0.7.2","kev":false,"link":{"from":"CVE-2025-24357","to":"CVE-2025-25183","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:vllm","fromFixed":"0.7.0","toFixed":"0.7.2","daysApart":11}]}},{"cve":"CVE-2025-29770","published":"2025-03-19","fixed":"0.8.0","kev":false},{"cve":"CVE-2025-29783","published":"2025-03-19","fixed":"0.8.0","kev":false}],"package":"PyPI:vllm"}}