Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local low-privileged shell on host
-
DeliveryPredict TorchServe /tmp extraction directory
-
ExploitPlant malicious model handler in path
-
ExecutionService loads swapped handler
-
ImpactCode executes as TorchServe service account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Temp file permissions
|
| Exploitation Conditions | Requires an attacker to already hold a local, low-privileged account on the host running TorchServe (PR:L, AV:L); it is not remotely exploitable. The concrete prerequisite is TorchServe's use of a predictable (non-randomized) model extraction directory under /tmp, which the description states applies to all versions, allowing the attacker to place or swap the model handler file before the service loads it so their code runs as the TorchServe service account. Limiting factors: the attacker needs prior local access and the TorchServe service must load/extract a model from the predictable path; no user interaction (UI:N) and no special non-default configuration are indicated as required. |
| Impact | This is a local privilege-escalation flaw (CWE-379, insecure temporary directory) scoring CVSS 7.8 with vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - meaning it requires an attacker to already have a local, low-privileged account on the host running TorchServe, after which they gain full confidentiality, integrity, and availability impact within the TorchServe service account context. The real-world risk is moderate and scoped: the local attack vector (AV:L) and low-privilege requirement (PR:L) sharply limit the population of attackers compared with a remote-unauthenticated flaw, which is consistent with the vuln.today 'this_week' decision label rather than an emergency/act_now rating. No CISA KEV status is present in the input, so there is no confirmed active exploitation; however, two public references exist (a write-up blog and a GitHub repository named 'torchserve-lpe'), indicating public attention and likely PoC material. No EPSS score was provided, so statistical exploitation probability cannot be weighed here. There is no signal conflict in the core data: the CVSS local vector aligns with the description's 'local user' and 'local privilege escalation' language. The main value of this finding is as a post-compromise escalation primitive in ML-serving environments rather than an initial-access or widespread-worm risk. |
| Exploit ScenarioDerived | An attacker with an existing low-privileged shell on a server running TorchServe predicts the fixed extraction path under /tmp and plants a malicious model handler there, so that when TorchServe extracts or loads the model it executes the attacker's code as the TorchServe service account. A public PoC reference (the 'torchserve-lpe' GitHub repository and an accompanying blog) exists but is not verified as working exploit code. Because the vector is local and requires an initial foothold (PR:L), this is an escalation step after some other access, not a remote entry point. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Local privilege escalation in PyTorch's TorchServe affects all versions: a predictable, non-randomized model extraction directory under /tmp lets a user who already holds a low-privileged local account swap the model handler file so that attacker code is loaded and executed as the TorchServe service account (CVSS 7.8, CWE-379, AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). It is explicitly not remotely exploitable - prior local access is the gating prerequisite - and no user interaction or non-default configuration is indicated. There is no CISA KEV entry and confirmed active exploitation is not established; a public PoC reference exists (a researcher blog and a GitHub repository), but it is not verified as working exploit code. Priority is 'this_week'.
RemediationAI
No vendor-released patch identified at time of analysis: the reference set for CVE-2026-123974 consists of the researcher write-up (https://christbowel.com/blog/torchserve-lpe/) and the associated GitHub repository (https://github.com/Christbowel/torchserve-lpe), neither of which supplies a fixed TorchServe version, and no patched release is confirmed in the available data. Because the flaw is local-only and requires an existing low-privileged account plus the service loading a model from the predictable /tmp extraction path, the only lever implied by the assessed prerequisites is tightening who can hold a local account and write to that path on TorchServe hosts - removing or restricting untrusted local users and reviewing directory ownership around the service's extraction location - while acknowledging that this narrows exposure rather than fixing the underlying insecure temporary-directory behavior. No vendor-documented workaround or configuration toggle is provided in the available sources, so operators should track the researcher references and future TorchServe releases for a patched version.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause class is CWE-379 (creation of a temporary file/directory with insecure permissions), realized here as TorchServe extracting model artifacts into a predictable path under /tmp rather than a randomized, per-invocation directory with restrictive ownership. Because that location is guessable and reachable by other local principals, a local attacker can pre-place or later swap the model handler file; when the TorchServe service loads or extracts the model from that predictable path, the substituted handler runs with the privileges of the TorchServe service account, giving full confidentiality, integrity and availability impact inside that account context. The CPE entry cpe:2.3:a:pytorch:torchserve:*:*:*:*:*:*:*:* uses a wildcard version, matching the description's 'all versions' scope; no version boundary or fixed release is stated in the supplied data. The precise mechanism by which the swapped handler is triggered at load time is not described in the available sources beyond the service loading a model from the predictable extraction directory.
Know when Pytorch gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local foothold needed so AV:L/PR:L; predictable path makes the swap straightforward (AC:L); code execution as the service account yields full C/I/A with no scope change.
Primary rating from Vendor (Akrites).
CVSS VectorVendor: Akrites
DescriptionCVE.org
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.
Executive ViewAI
A high-severity local privilege escalation vulnerability in TorchServe (CVE-2026-123974) allows an attacker with a low-privileged local account to execute code as the TorchServe service account, potentially compromising model integrity and service operations. While not remotely exploitable, this flaw affects all TorchServe versions and could serve as a stepping stone for internal threats, making it a priority for this week's remediation.
No vendor-released patch identified at time of analysis. Interim mitigations: limit local access to TorchServe hosts to trusted users only, implement file integrity monitoring on /tmp extraction directories, use container isolation with read-only filesystem mounts for model directories, and restrict the service account's privileges.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
TorchServe is a tool for serving and scaling PyTorch models in production. Rated critical severity (CVSS 9.8), this vuln
In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. Rated critical severity (CVSS 9.8), this vulnerability is
PickleScan before 0.0.23 can be bypassed by flipping specific ZIP file header flag bits, allowing malicious pickle files
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is
PyTorch is a Python package that provides tensor computation. [CVSS 8.8 HIGH]
A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sendi
Out-of-bounds heap read in PyTorch torchvision's native GIF decoder (versions through 0.28.0) lets attackers who supply
picklescan before 0.0.23 is vulnerable to a ZIP archive manipulation attack that causes it to crash when attempting to e
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. Rated critical sever
PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built
NVIDIA APEX for Linux contains a deserialization of untrusted data vulnerability that affects environments using PyTorch
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Rated medium severity (CVSS
EUVD-2026-118480
GHSA-g2fw-m3ph-hqcq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB