{"schemaVersion":4,"id":"CVE-2026-123974","aliases":["DEBIAN-CVE-2026-123974","UBUNTU-CVE-2026-123974"],"status":"published","duplicateOf":null,"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.","dates":{"published":"2026-11-06T19:52:16.058Z","modified":"2026-11-06T20:18:25.863Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.00145,"percentile":0.03955,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-07T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00145,"percentile":0.03955}],"last30":[{"date":"2026-11-07T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00157,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00145,"percentile":0.03955}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions","description":"The product creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/379.html"}],"affected":[{"vendor":"debian","product":"pytorch","name":"pytorch","label":"pytorch","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/pytorch","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"pytorch","name":"pytorch","label":"pytorch","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/pytorch","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"pytorch","product":"torchserve","name":"TorchServe","label":"torchserve","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":"/vendor/pytorch/torchserve"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://christbowel.com/blog/torchserve-lpe/","label":"christbowel.com/blog/torchserve-lpe/","hostname":"christbowel.com","tags":["REPORT"]},{"url":"https://github.com/Christbowel/torchserve-lpe","label":"github.com/Christbowel/torchserve-lpe","hostname":"github.com","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-123974","label":"security-tracker.debian.org/tracker/CVE-2026-123974","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-123974","label":"ubuntu.com/security/CVE-2026-123974","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-123974","label":"www.cve.org/CVERecord?id=CVE-2026-123974","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-06T19:52:16.058Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-06T20:18:25.863Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,78],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00145,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-06T20:18:25.863Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-06T20:18:25.863Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-11-06T20:18:25.863Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-06T20:18:25.863Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-06T20:18:09.099Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00145,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T07:02:00.704Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T07:02:01.187Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T07:02:01.389Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T07:01:05.155Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T07:01:59.185Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T07:01:58.234Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:21:36.682Z","stale":false,"partial":false}}