world

PyTorch and llama.cpp Hit by 17 ZDI Flaws; Only llama.cpp Patches

ZDI disclosed 17 model-loading flaws across llama.cpp and PyTorch. llama.cpp fixed all nine by b12340, while PyTorch closed eight without patches.

PyTorch and llama.cpp Hit by 17 ZDI Flaws; Only llama.cpp Patches

The Zero Day Initiative (ZDI) published 17 advisories on November 24, 2026 targeting the two runtimes most widely used to load open-weight AI models: nine vulnerabilities in llama.cpp and eight in PyTorch. While every flaw turns a crafted model artifact or request into code execution or crashes, the two projects responded in opposite ways—llama.cpp patched all nine by build b12340 (v1.0.0), whereas PyTorch closed all eight reports without releasing patches.

Inside the Nine llama.cpp Fixes—and the Unauthenticated Server Bug

Eight of the nine llama.cpp vulnerabilities sit in GGUF and multimodal projector (mmproj) parsing, including integer overflows, set_swa_pattern heap overflows, and heap buffer overflows across Gemma 4 audio, HunyuanVL, and MiniCPM-V projector loaders (six rated CVSS 7.8, two crashes rated 5.5). The ninth and highest-severity bug, ZDI-26-1079 (CVE-2026-131837, CVSS 8.1), is a remote unauthenticated use-after-free in llama-server triggered when --sleep-idle-seconds is enabled and a request arrives right as the idle timer frees the vocab.

Upstream maintainers merged the final four fixes (PRs 32130–32133) on November 12, 174 days after ZDI's May 22 report. Builds b12340 and v1.0.0 (November 13) are the earliest tags containing all nine patches, whereas older tags like b12336 remain exposed to the server race.

Why PyTorch Closed Eight Flaws Without Patches

The eight PyTorch advisories (seven rated CVSS 7.8, one 7.0) target modern packaging paths rather than legacy pickle alone: PT2 archive parsing (code injection and exposed dangerous methods), AOTIModelPackageLoader (AOTInductor command injection and directory traversal), distributed checkpointing (FileSystemReader, torch_save_to_dcp), load_compiled_function, and load_state_dict_from_url.

PyTorch closed seven reports as "expected behavior" and one as a known issue within 1 to 13 days, citing its security policy: loading untrusted models is outside its threat boundary, and users should rely on sandboxes or Safetensors.

Second-Order Effects for AI Supply Chains and Desktop Apps

In 2026, pulling weights from public hubs inside CI pipelines, notebooks, and local GUI wrappers has blurred the line between "opening a file" and running remote code. Worse, desktop apps that bundle llama.cpp internally do not inherit upstream fixes until the wrapper itself ships a new release—leaving local workstations exposed even when system packages are updated.

Winners, Losers, and What to Watch

  • Clear beneficiaries: Teams adopting Safetensors weights inside credential-free containers and llama.cpp operators upgrading to b12340 / v1.0.0 or newer.
  • Under pressure: MLOps pipelines loading third-party PT2, AOTInductor, or mmproj files directly on developer laptops or shared GPU hosts.
  • What to check now: Run llama-server --version across containers, drop --sleep-idle-seconds on unpatched servers, and audit PyTorch code for AOTIModelPackageLoader or FileSystemReader calls.

// sources

// WebZona Studio products

Need a product or service that does not exist yet?

Pitch your idea in our "50 Hours" program — every month we build one community idea free for everyone. Or explore our released products.

// comments (0)

// no comments yet.