{"id":"CVE-2026-123974","published":"2026-11-06T19:52:16Z","modified":"2026-11-06T20:18:25Z","title":"pytorch/serve: Local privilege escalation through insecure temporary path","vendor":"PyTorch","product":"TorchServe","tier":"tail","description":{"text":"In all versions of PyTorch's TorchServe, a predictable extraction directory in /tmp lets a local user swap the model handler and run code as the TorchServe service account leading to local privilege escalation.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00145,"percentile":0.0384,"provenance":"source"},"cwes":[{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions"}],"references":[{"url":"https://christbowel.com/blog/torchserve-lpe/","tags":[]},{"url":"https://github.com/Christbowel/torchserve-lpe","tags":[]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":0.77},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"pytorch","affectedVersions":[{"vendor":"PyTorch","product":"TorchServe","versions":["all versions"]}],"solutions":{"items":["The project is archived and currently no permanent solution is scheduled for release. See workaround section."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["Three independent fixes: * Set TEMP (or pass -Djava.io.tmpdir) to a directory the service account owns and that is not world-writable. * Harden the systemd unit with PrivateTmp=yes, so /tmp is namespaced per service. * At the code level, extract into a directory owned by the service account and refuse to reuse a pre-existing extraction root that the service does not own, instead of forceMkdir-ing into whatever is already there."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-11-06T20:18:09.099163Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-118480","exploited":false,"provenance":"source"}}