{"affected":[{"defaultStatus":"unknown","product":"TorchServe","source":"CNA: Akrites","vendor":"PyTorch","versions":[{"lessThan":"*","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-123974","cwes":["CWE-379"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":7.8,"severity":"high","source":"CNA: Akrites","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1793996305863,"publishedAt":1793994736058,"references":[{"source":"CNA: Akrites","tags":[],"url":"https://christbowel.com/blog/torchserve-lpe/"},{"source":"CNA: Akrites","tags":[],"url":"https://github.com/Christbowel/torchserve-lpe"}],"remediation":[{"kind":"fix","source":"CNA: Akrites","text":"The project is archived and currently no permanent solution is scheduled for release. See workaround section."},{"kind":"workaround","source":"CNA: Akrites","text":"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."}],"revision":"bb28d4c23745fc6cf1eb9073a05d61c3f88efbc52e1266ca31f935b9ba128d15","sources":[{"modifiedAt":1793996305863,"name":"CNA: Akrites","retrievedAt":1793999363589,"url":"https://www.cve.org/CVERecord?id=CVE-2026-123974"}],"ssvc":{"assessedAt":1793996289099,"automatable":"no","exploitation":"poc","source":"ADP: CISA-ADP","technicalImpact":"total"},"status":"published","title":"pytorch/serve: Local privilege escalation through insecure temporary path","updatedAt":1793999363589}