Security Resilience

CVE-2026-123974

PyTorch TorchServe

Published
06 November 2026
Modified
12 November 2026
CVSS Score v3.1 7.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0014 4th percentile
Risk Priority 54 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-123974 is a high-severity Creation of Temporary File in Directory with Insecure Permissions (CWE-379) vulnerability in PyTorch TorchServe (named in the CVE record; NVD lists no product yet). Its CVSS base score is 7.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Executable Installer File Permissions Weakness (T1574.005); ranked at the 4th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

This vulnerability is AI-related — categorised as Deep Learning Frameworks.

The strongest mitigations our analysis identified map to AC-6 (Least Privilege) and SC-4 (Information in Shared System Resources) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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.

CWE(s)

AI Security AnalysisAI

AI Category
Deep Learning Frameworks
Risk Domain
N/A
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: pytorch

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1574.005 Executable Installer File Permissions Weakness Stealth
Adversaries may execute their own malicious payloads by hijacking the binaries used by an installer.
T1005 Data from Local System Collection
Adversaries may search local system sources, such as file systems, configuration files, local databases, virtual machine files, or process memory, to find files of interest and sensitive data prior to Exfiltration.
T1558.005 Ccache Files Credential Access
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-64896Shared CWE-379
CVE-2026-85028Shared CWE-379
CVE-2026-61581Shared CWE-379
CVE-2025-10279Shared CWE-379
CVE-2023-40438Shared CWE-379
CVE-2023-32450Shared CWE-379
CVE-2023-3181Shared CWE-379
CVE-2024-24693Shared CWE-379
CVE-2023-6080Shared CWE-379
CVE-2025-71176Shared CWE-379

Affected Assets

PyTorch
TorchServe
named in the CVE record; NVD lists no product yet

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 1 hardening rule · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)
  • V15.4.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

AC-6 reduces the set of actors that can reach an insecurely created temp file by limiting privileges on the containing directory.

SC-4 stops unintended information exposure through shared resources such as world-writable temp directories or files.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly prevent developers from writing code that creates temp files in insecure directories.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

A.8.29's combined programme (code review, static analysis, vulnerability scanning, penetration testing) reaches CWE-379 through both SOURCE and RUNTIME: static analysis flags use of tmpfile()/File.createTempFile() with default permissions, code review spots insecure temp-file patterns, and penetration testing observes the resulting file permissions in /tmp or equivalent. The remainder is bounded and nameable: cases where the directory's own permissions are the defect rather than the file-creation call, and custom temp-file logic that standard tools do not pattern-match.

prevents

Training technical teams on secure coding practices (including proper use of temporary file APIs like mkstemp() over tmpfile(), or setting explicit permissions) addresses a knowledge gap that produces this weakness, but the effect is a minority one because the practice is fallible and not every developer receives or retains this specific guidance.

prevents

Secure coding standards directly require safe temporary-file creation with restrictive permissions.

finds

A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw. CWE-379 does surface as CVEs (the observed examples include CVE-2022-27818, CVE-2021-41989, CVE-2021-21290), so it is not 'rarely does', but the disclosed share of any weakness class is a minority of latent instances, and most insecure temp-file creation lives in custom code that never gets a CVE assigned.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

No rule maps to these weaknesses at full or mostly. Tick the option above to see the partial mappings.

Oracle Linux 8 (1 partial rule)
  • V-248577 OL 8 must enable kernel parameters to enforce Discretionary Access Control (DAC) on symlinks. blocks CWE-379

References