CVE-2026-123974 pytorch/serve: Local privilege escalation through insecure temporary path

High 7.8 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-123974?

CVE-2026-123974 is a high-severity vulnerability in PyTorch TorchServe, published on 6 Nov 2026.

Official 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.

Weakness: CWE-379

Which versions are affected by CVE-2026-123974?

How do I fix CVE-2026-123974?

No fix has been published for CVE-2026-123974 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-123974 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-123974 exists.

Sources

Also known as DEBIAN-CVE-2026-123974, ECHO-e3b8-ed87-a07d, GHSA-g2fw-m3ph-hqcq, UBUNTU-CVE-2026-123974.

Is CVE-2026-123974 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free