On 24 November, Trend's Zero Day Initiative (ZDI) published 22 advisories covering LM Studio, llama.cpp and PyTorch. Many organisations use those three programs to run AI models on their own hardware. LM Studio has five of the advisories, llama.cpp has nine and PyTorch has eight. Fixes exist for the LM Studio and llama.cpp flaws. The PyTorch flaws were closed without a patch.
NZ firms often choose local models because client files and prompts stay in the building. The choice also moves patching from a cloud provider to the firm, and two of the fixed products are easy to leave out of a patching schedule because staff can install them without IT's help.
The LM Studio flaw scores 9.8
The most severe advisory is CVE-2026-133995, rated 9.8. LM Studio generated code from an MCP tool schema without validating the schema, so an attacker with no login could run commands with LM Studio's permissions. MCP is the protocol that connects AI models to tools and business systems. ZDI's advisory lists LM Studio 0.4.16 as the fixed version.
The other four LM Studio advisories describe a plugin sandbox escape, an authentication bypass caused by weak credentials and two information leaks, through schema references and error messages. Version 0.4.16 fixes all five. ZDI credits four of the five to STARLabs SG, whose researchers won US$40,000 at Pwn2Own Berlin in May for chaining five bugs against LM Studio.
LM Studio received the reports on 2 June, and 0.4.16 shipped on 4 June. That's a fast fix, but the 0.4.16 release notes describe the work only as "Security hardening". An administrator reading those notes had little reason to treat the update as urgent, and the severity score arrived almost six months later.
Updating to 0.4.16 leaves another known hole open. A separate flaw in the model downloader, published on 30 October, affects every version before 0.4.22+1. A malicious model repository can use the downloader flaw to plant files that run each time LM Studio starts. The current desktop release is 0.4.29, dated 25 November, and we'd install the current release.
llama.cpp needs a build from 13 November or later
llama.cpp is the open-source engine inside many local AI products. Its highest-rated flaw in the batch, CVE-2026-131837 at 8.1, lets an unauthenticated attacker run code by sending a request as the server goes to sleep. The fix merged on 12 November and is listed in version 1.0.0, released the next day. One analysis identifies build b12340 as the first with all nine fixes.
Exposure to CVE-2026-131837 depends on configuration. llama-server's idle sleep setting is disabled by default and the server listens only on its own machine. A firm that turned on idle sleep to free up graphics memory, then opened the server to staff, has changed both defaults.
The other eight llama.cpp flaws involve model files. In one example, loading a malicious audio projector file can run code on the machine. A firewall won't help when a staff member downloads the file willingly.
Ollama users should check their version too, because Ollama lists llama.cpp as a supported backend. Ollama 0.40.18, released on 24 November, moves to llama.cpp build b12651, which is numbered well past b12340. The previous Ollama release is dated 10 November, two days before the last llama.cpp fixes merged. ZDI's advisories don't name Ollama, and whether the flaws can be triggered through older Ollama releases hasn't been published. We'd upgrade anyway, since the cost is one restart and a regression test.
PyTorch puts the risk with you
ZDI's PyTorch advisories cover functions that load model files, including load_state_dict_from_url and the AOTInductor package loader. PyTorch rejected the first report as a known issue and the second as expected behaviour. ZDI's only suggested mitigation in both cases is to restrict interaction with the product.
PyTorch's security policy says running an untrusted model is "equivalent to running untrusted code". The policy advises running such models in a sandbox and describes Safetensors as the safest weight format. We think PyTorch's position is workable for a data science team. A 30-person firm whose developer copied a loading script from a tutorial probably doesn't know the position exists.
What the disclosures mean for sovereignty
Local hosting reduces a firm's dependence on offshore providers. The privacy duty stays put: Privacy Act principle 5 requires reasonable safeguards against loss and unauthorised access wherever personal information is held. A local AI server connected to a document store and an ERP system may hold credentials for both, so code running on that server could reach well beyond the chat window. A breach likely to cause serious harm must be notified to the Privacy Commissioner and the people affected.
Australia's cyber agency published guidance on open-weight models earlier in November, making the point that self-hosting organisations take on more responsibility for security, monitoring, maintenance and incident response. The guidance also recommends verifying hashes and signatures, loading new models in a sandbox and choosing file formats that can't contain executable code.
None of the 22 flaws is known to be exploited in the case of llama.cpp and PyTorch, and no LM Studio attacks have been reported. Firms have time to patch in an orderly way. We'd still do LM Studio this week, because its worst flaw needs no login or user action.
Next steps
- Find the installs. Search managed PCs for LM Studio, Ollama and llama-server, and ask developers about containers. Include machines bought outside IT.
- Update to these versions or later. Use LM Studio 0.4.29, llama.cpp 1.0.0 and Ollama 0.40.18. Ask the supplier of any packaged AI product which llama.cpp build sits inside it.
- Check who can reach each server. LM Studio doesn't require authentication by default, and its documentation warns that any bind other than 127.0.0.1 exposes the server. Turn network serving off where nobody needs it and require tokens everywhere else.
- Control model downloads. Keep an approved list of publishers, record file hashes, prefer Safetensors where PyTorch is used, and test new files on an isolated machine without business credentials.
- Limit the service account. Give the AI server read access only to the folders it needs, and keep ERP and email credentials off developer test machines.
- Name an owner. Put each AI runtime in the asset register with a person responsible for monthly checks and emergency patches. Our ITSM page covers the change and incident processes to attach.
Firms still deciding between cloud and in-house AI should add runtime patching to the cost comparison before buying hardware. Our private AI server page explains what an on-premises setup includes and where cloud services may suit better.
Sources
- ZDI published advisories
- ZDI-26-1121: LM Studio MCP tool schema code injection
- ZDI-26-1120: LM Studio plugin sandbox directory traversal
- ZDI-26-1119: LM Studio weak credentials authentication bypass
- ZDI-26-1118: LM Studio schema validation error information disclosure
- ZDI-26-1117: LM Studio JSON schema SSRF
- ZDI-26-1079: llama.cpp server use-after-free
- ZDI-26-1074: llama.cpp GEMMA4A heap overflow
- ZDI-26-1058: PyTorch load_state_dict_from_url
- ZDI-26-1053: PyTorch AOTIModelPackageLoader
- ZDI: Pwn2Own Berlin 2026 day one results
- i10x: PyTorch and llama.cpp model file flaws
- i10x: LM Studio MCP schema flaw
- VulnCheck: LM Studio model downloader path traversal
- LM Studio 0.4.16 changelog
- LM Studio desktop changelog
- LM Studio docs: authentication
- LM Studio docs: serve on local network
- llama.cpp pull request 32133
- llama.cpp v1.0.0 release
- llama.cpp server README
- Ollama repository
- Ollama v0.40.18 release
- Ollama releases
- PyTorch security policy
- Privacy Commissioner: Principle 5
- Privacy Commissioner: Privacy breaches
- GovTech Review: ACSC guidance on open-weight AI models
- The Cyber Express: Open-weight AI models carry hidden risks
Want to know what this means for your organisation? Our team in Auckland can show you your top three opportunities in a free 30 minute assessment.
Get my free assessment How we help