{"id":"CVE-2026-123974","state":"PUBLISHED","title":"pytorch/serve: Local privilege escalation through insecure temporary path","description":"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.","publishedAt":"2026-11-06T19:52:16.058Z","updatedAt":"2026-11-06T20:18:25.863Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Akrites"},"assigner":"Akrites","products":["PyTorch TorchServe"],"affected":[{"vendor":"PyTorch","product":"TorchServe","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}],"repo":"https://github.com/pytorch/serve"}],"references":["https://christbowel.com/blog/torchserve-lpe/","https://github.com/Christbowel/torchserve-lpe"],"weaknesses":["CWE-379"],"ingestedAt":"2026-11-06T20:26:06.519Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/123xxx/CVE-2026-123974.json","commit":"1e4000ec8d839db7e6b8dc7c6235ee9acb4bc25e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-123974","state":"PUBLISHED","datePublished":"2026-11-06T19:52:16.058Z","dateUpdated":"2026-11-06T20:18:25.863Z","assignerShortName":"Akrites","assignerOrgId":"7fefd608-56a6-419f-a002-fd8543c0710a","dateReserved":"2026-11-06T17:53:03.966Z"},"containers":{"cna":{"title":"pytorch/serve: Local privilege escalation through insecure temporary path","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"PyTorch","product":"TorchServe","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}],"repo":"https://github.com/pytorch/serve"}],"references":[{"url":"https://christbowel.com/blog/torchserve-lpe/"},{"url":"https://github.com/Christbowel/torchserve-lpe"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"HIGH","baseScore":7.8,"vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-379","lang":"en","description":"CWE-379 Creation of temporary file in directory with insecure permissions","type":"CWE"}]}],"providerMetadata":{"shortName":"Akrites","orgId":"7fefd608-56a6-419f-a002-fd8543c0710a","dateUpdated":"2026-11-06T19:52:16.058Z"},"datePublic":"2026-10-29T15:00:00.000Z","tags":["unsupported-when-assigned"],"workarounds":[{"lang":"en","value":"Three independent fixes:\n\n\n  *  Set TEMP (or pass -Djava.io.tmpdir) to a directory the service account owns and that is not world-writable.\n  *  Harden the systemd unit with PrivateTmp=yes, so /tmp is namespaced per service.\n  *  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."}],"solutions":[{"lang":"en","value":"The project is archived and currently no permanent solution is scheduled for release. See workaround section."}],"credits":[{"lang":"en","value":"Christ Bowel","type":"finder"}],"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-06T20:18:09.099163Z","id":"CVE-2026-123974","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-06T20:18:25.863Z"}}]}}}