Skip to main content

TorchServe EUVDEUVD-2026-118480

| CVE-2026-123974 HIGH
Creation of Temporary File in Directory with Insecure Permissions (CWE-379)
2026-11-06 Akrites GHSA-g2fw-m3ph-hqcq
7.8
CVSS 3.1 · Vendor: Akrites
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local low-privileged shell on host
  2. Delivery
    Predict TorchServe /tmp extraction directory
  3. Exploit
    Plant malicious model handler in path
  4. Execution
    Service loads swapped handler
  5. Impact
    Code 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.

Monitor Track and reassess. Why: Vendor states no customer action required.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

TorchServe 0 <*

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

Vendor (Akrites) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Akrites).

CVSS VectorVendor: Akrites

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
niche ML model-serving tool, limited production deployment footprint
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
Vendor states no customer action required
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

CVE-2023-43654 CRITICAL POC
9.8 Sep 28

TorchServe is a tool for serving and scaling PyTorch models in production. Rated critical severity (CVSS 9.8), this vuln

CVE-2024-48063 CRITICAL POC
9.8 Oct 29

In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. Rated critical severity (CVSS 9.8), this vulnerability is

CVE-2025-1945 CRITICAL POC
9.8 Mar 10

PickleScan before 0.0.23 can be bypassed by flipping specific ZIP file header flag bits, allowing malicious pickle files

CVE-2022-45907 CRITICAL POC
9.8 Nov 26

In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is

CVE-2026-24747 HIGH POC
8.8 Jan 27

PyTorch is a Python package that provides tensor computation. [CVSS 8.8 HIGH]

CVE-2024-8020 HIGH POC
7.5 Mar 20

A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sendi

CVE-2026-65918 HIGH POC
7.1 Jul 23

Out-of-bounds heap read in PyTorch torchvision's native GIF decoder (versions through 0.28.0) lets attackers who supply

CVE-2025-1944 MEDIUM POC
6.5 Mar 10

picklescan before 0.0.23 is vulnerable to a ZIP archive manipulation attack that causes it to crash when attempting to e

CVE-2024-35198 CRITICAL
9.8 Jul 19

TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. Rated critical sever

CVE-2025-32434 CRITICAL POC
9.3 Apr 18

PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built

CVE-2025-33244 CRITICAL
9.0 Mar 24

NVIDIA APEX for Linux contains a deserialization of untrusted data vulnerability that affects environments using PyTorch

CVE-2025-2953 MEDIUM POC
4.8 Mar 30

A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Rated medium severity (CVSS

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy