{"api_version":"1","generated_at":"2026-11-08T00:56:38+00:00","cve":"CVE-2026-123974","urls":{"html":"https://cve.report/CVE-2026-123974","api":"https://cve.report/api/cve/CVE-2026-123974.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-123974","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-123974"},"summary":{"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.","state":"PUBLISHED","assigner":"Akrites","published_at":"2026-11-06 20:17:20","updated_at":"2026-11-06 21:17:08"},"problem_types":["CWE-379","CWE-379 CWE-379 Creation of temporary file in directory with insecure permissions"],"metrics":[{"version":"3.1","source":"7fefd608-56a6-419f-a002-fd8543c0710a","type":"Secondary","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","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"CVSS","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","data":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://christbowel.com/blog/torchserve-lpe/","name":"https://christbowel.com/blog/torchserve-lpe/","refsource":"7fefd608-56a6-419f-a002-fd8543c0710a","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/Christbowel/torchserve-lpe","name":"https://github.com/Christbowel/torchserve-lpe","refsource":"7fefd608-56a6-419f-a002-fd8543c0710a","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-123974","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123974","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"PyTorch","product":"TorchServe","version":"affected * semver","platforms":[]}],"timeline":[],"solutions":[{"source":"CNA","title":"","value":"The project is archived and currently no permanent solution is scheduled for release. See workaround section.","time":"","lang":"en"}],"workarounds":[{"source":"CNA","title":"","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.","time":"","lang":"en"}],"exploits":[],"credits":[{"source":"CNA","value":"Christ Bowel","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"123974","cve":"CVE-2026-123974","epss":"0.001450000","percentile":"0.037940000","score_date":"2026-11-07","updated_at":"2026-11-08 00:06:15"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-123974","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","timestamp":"2026-11-06T20:18:09.099163Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-11-06T20:18:25.863Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"defaultStatus":"unknown","product":"TorchServe","repo":"https://github.com/pytorch/serve","vendor":"PyTorch","versions":[{"lessThan":"*","status":"affected","version":"0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"finder","value":"Christ Bowel"}],"datePublic":"2026-10-29T15:00:00.000Z","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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-379","description":"CWE-379 Creation of temporary file in directory with insecure permissions","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-06T19:52:16.058Z","orgId":"7fefd608-56a6-419f-a002-fd8543c0710a","shortName":"Akrites"},"references":[{"url":"https://christbowel.com/blog/torchserve-lpe/"},{"url":"https://github.com/Christbowel/torchserve-lpe"}],"solutions":[{"lang":"en","value":"The project is archived and currently no permanent solution is scheduled for release. See workaround section."}],"tags":["unsupported-when-assigned"],"title":"pytorch/serve: Local privilege escalation through insecure temporary path","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."}],"x_generator":{"engine":"cvelib 1.8.0"}}},"cveMetadata":{"assignerOrgId":"7fefd608-56a6-419f-a002-fd8543c0710a","assignerShortName":"Akrites","cveId":"CVE-2026-123974","datePublished":"2026-11-06T19:52:16.058Z","dateReserved":"2026-11-06T17:53:03.966Z","dateUpdated":"2026-11-06T20:18:25.863Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-06 20:17:20","lastModifiedDate":"2026-11-06 21:17:08","problem_types":["CWE-379","CWE-379 CWE-379 Creation of temporary file in directory with insecure permissions"],"metrics":{"cvssMetricV31":[{"source":"7fefd608-56a6-419f-a002-fd8543c0710a","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-11-06T20:18:09.099163Z","id":"CVE-2026-123974","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"123974","Ordinal":"1","Title":"pytorch/serve: Local privilege escalation through insecure tempo","CVE":"CVE-2026-123974","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"123974","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"pytorch/serve: Local privilege escalation through insecure tempo"}]}}}