A critical security flaw in llama.cpp, the open-source engine behind much of the world's local AI inference, can let an unauthenticated attacker crash an exposed server — or run code on it. The vulnerability, tracked as CVE-2026-137567, was disclosed by VulnCheck on November 26 and carries a near-maximum severity score of 9.8 out of 10. The fix is already out: build b12658, released November 24.

llama.cpp is the free C/C++ engine that lets teams run large language models on their own servers, workstations and laptops instead of in someone else's cloud. It powers countless self-hosted chatbots, coding assistants and research rigs — which is why a remotely triggerable flaw in one of its components is getting urgent attention from security teams.

What the flaw does

The bug lives in the optional ggml RPC server, the component that spreads model work across several machines. It is an out-of-bounds write, classified as CWE-787: when a client sends a tensor with zero elements as the destination of a copy operation, the server's bounds check is skipped and the copy lands on memory it was never meant to touch.

The RPC server listens on TCP port 50052 and has no built-in authentication. That means anyone who can reach the port can send a crafted request, learn where the server's memory buffers sit, and then point the copy at an arbitrary heap address. The result, according to VulnCheck's advisory, is a server crash — or remote code execution. The researcher credited with the find is Min P. Hong of SEWORKS.

There is some reassuring news. No exploitation has been reported, no public proof-of-concept exists, and the flaw is not in CISA's Known Exploited Vulnerabilities catalogue as of November 27. The project's own documentation already warned that the RPC backend is a proof of concept, described as "fragile and insecure", and that the server should never run on an open network or in a sensitive environment.

Who is affected — and who is not

Only builds b11450 through b12657 are vulnerable, and only on hosts that actually run the RPC server. If you run llama.cpp or llama-server on a single machine and have never started rpc-server, this flaw does not apply to you.

That distinction matters, because the RPC server is a niche feature: it exists for teams that split inference across multiple machines. But where it is used, it is often exposed on internal networks that are broader than their operators realise — and an attacker who gets a foothold anywhere on that network can reach port 50052 directly.

The disclosure is also the third critical flaw in the same RPC component in about five weeks, according to independent analysis — a reminder that the distributed-inference code path has been a repeated source of serious bugs.

A second flaw, and what to do now

The same round of disclosures includes a second bug, CVE-2026-137057, a high-severity flaw that lets anyone who can reach llama-server hang it and exhaust its memory through a grammar-handling bug. It affects builds b7118 to b12604 and was fixed in b12604, released November 21.

The fix for both is the same: update to build b12658 or later, which contains the RPC fix and the earlier grammar fix. Operators should also keep any remaining RPC listeners off untrusted networks, behind a firewall or a zero-trust proxy — and treat the RPC server as what its maintainers say it is: experimental code that was never meant to face the open internet.