Local inferenceNIST NVD and CISA KEV

llama.cpp CVEs

Every vulnerability NIST NVD lists for llama.cpp itself, newest first, refreshed every 6 hours. A CVE is counted here when NVD files it under the llama.cpp product (its CPE) or, while NVD has not analysed it yet, when the advisory names llama.cpp as the affected product. Entries listed in CISA KEV are exploited in the wild: patch those first. Newest entry: 29 Nov 2026.

All llama.cpp CVEs

Newest first. Each one has its page, with the affected versions and the release that fixes it.

Alert me on llama.cpp

CVE-2026-138094medium 4.4llama.cpp: Numeric truncation error in the ggml HandlerA security vulnerability has been detected in ggml-org llama.cpp up to 0.6.0. Impacted is the function ggml_acc_impl of the file ggml/src/ggml.c of the component ggml Handler…29 Nov 2026CVE-2026-138092medium 5.3llama.cpp: Integer overflow in Ggml Tensor Library Roll OperationA security flaw has been discovered in ggml-org llama.cpp up to 0.8.0. This vulnerability affects the function ggml_roll of the file ggml/src/ggml.c of the component Ggml Tensor…29 Nov 2026CVE-2026-137567critical 9.8llama.cpp: Out-of-bounds write in the ggml RPC serverllama.cpp b11450 before b12658 contains an out-of-bounds write vulnerability in the ggml RPC server that allows unauthenticated attackers to write to arbitrary heap addresses via…26 Nov 2026CVE-2026-137057high 7.5llama.cpp: Integer underflow in llama_grammar_parser::parse_sequence()llama.cpp from b7118 before b12604 contains an integer underflow vulnerability in llama_grammar_parser::parse_sequence() that allows unauthenticated remote attackers to cause…25 Nov 2026CVE-2026-134540medium 5.3llama.cpp: Improper input validation in the llama-serverA security vulnerability has been detected in ggml-org llama.cpp 0.7.0-dev. This affects the function common_sampler_init of the file common/sampling.cpp of the component…21 Nov 2026CVE-2026-133710high 7.8llama.cpp: Integer overflow in the hrm_text loader load_arch_hparams()llama.cpp b11003 before b12556 contains an integer overflow in the hrm_text loader load_arch_hparams() that allows attackers to bypass the block count check using crafted GGUF…20 Nov 2026CVE-2026-126976high 7llama.cpp: Remote Code Executionllama.cpp MTMD Multimodal GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected…18 Nov 2026CVE-2026-126975high 7.8llama.cpp: Remote Code Execution (heap-based buffer overflow)llama.cpp GGUF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected…18 Nov 2026CVE-2026-126974high 7.8llama.cpp: Remote Code Executionllama.cpp GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of…18 Nov 2026CVE-2026-119052high 7.5llama.cpp: Uncaught exception in the ggml-rpc serverllama.cpp b2877 before b11935 contains an uncaught exception vulnerability in the ggml-rpc server that allows unauthenticated remote attackers to crash the rpc-server by sending…29 Oct 2026CVE-2026-118375high 8.1llama.cpp: Out-of-bounds write in the ggml-rpc RDMA transport rdma_recv() functionllama.cpp b8841 before b11865 contains an out-of-bounds write vulnerability in the ggml-rpc RDMA transport rdma_recv() function that allows unauthenticated peers to overflow the…28 Oct 2026CVE-2026-116840medium 6.1llama.cpp: Integer overflow in gguf_init_from_readerllama.cpp b5854 before b11275 contains an integer overflow vulnerability in gguf_init_from_reader that bypasses the CVE-2025-53630 size check when padding near-SIZE_MAX tensor…27 Oct 2026CVE-2026-116829medium 6.6llama.cpp: Integer overflow in gguf_init_from_readerllama.cpp b10398 before b11301 contains an integer overflow vulnerability in gguf_init_from_reader that allows attackers to bypass tensor element-count validation by supplying…27 Oct 2026CVE-2026-116816high 7.8llama.cpp: Heap out-of-bounds write in llm_tokenizer_plamo2::buildllama.cpp b5899 before b10261 contains a heap out-of-bounds write vulnerability in llm_tokenizer_plamo2::build that allows attackers to corrupt heap memory via crafted GGUF…27 Oct 2026CVE-2025-71439medium 5.5llama.cpp: Heap out-of-bounds read in llama_vocab::impl::print_info()llama.cpp before b5649 contains a heap out-of-bounds read vulnerability in llama_vocab::impl::print_info() that allows attackers to crash model loading via oversized special token…27 Oct 2026CVE-2024-58400high 8.2llama.cpp: Out-of-bounds read in llama_decode_internal and llama_encode_internalllama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory…27 Oct 2026CVE-2024-58399medium 6.1llama.cpp: Out-of-bounds read in llama_model_loaderllama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF…27 Oct 2026CVE-2026-116467medium 5.3llama.cpp: Reachable assertion in Mirostat SamplerA security flaw has been discovered in ggml-org llama.cpp up to 0.7.0. Affected by this vulnerability is an unknown functionality of the file src/llama-sampler.cpp of the…26 Oct 2026CVE-2026-116096medium 5.3llama.cpp: Out-of-bounds write in Pocket-TTSA weakness has been identified in ggml-org llama.cpp. Affected by this issue is the function list_pockettts_state_slots of the file tools/mtmd/models/pockettts-gen.cpp of the…25 Oct 2026CVE-2026-107183high 8.1llama.cpp: Use-after-free and double free in common_chat_peg_mapper::mapllama.cpp before b11393 contains a use-after-free and double free vulnerability in common_chat_peg_mapper::map that allows unauthenticated remote attackers to corrupt heap memory…7 Oct 2026CVE-2026-86317medium 5.3llama.cpp: Reachable assertion in the RPC ServerA vulnerability was detected in ggml-org llama.cpp up to 0.4.0. This impacts the function rpc_server::deserialize_tensor of the file ggml/src/ggml-rpc/ggml-rpc.cpp of the…7 Sept 2026CVE-2026-52132high 7.5llama.cpp: Lets remote attackers cause a denial of servicellama.cpp through commit 97f06e9, when started with the --reranking flag, allows remote attackers to cause a denial of service (std::bad_alloc and HTTP 500) via a negative top_n…1 Sept 2026CVE-2026-52131high 7.5llama.cpp: Has a Reachable Assertion via the gguf_reader::read functionllama.cpp b5693 and before has a Reachable Assertion via the gguf_reader::read function.1 Sept 2026CVE-2026-52130high 7.5llama.cpp: Uncontrolled Recursion in common/json-schema-to-grammarllama.cpp b5693 and before is vulnerable to Uncontrolled Recursion in common/json-schema-to-grammar.cpp, resulting in a denial of service.1 Sept 2026CVE-2026-78148medium 5.3llama.cpp: Null pointer dereference in the ggml-RPC ServerA vulnerability was determined in ggml-org llama.cpp bec4772f6. This affects the function rpc_server::graph_compute of the file ggml/src/ggml-rpc/ggml-rpc.cpp of the component…24 Aug 2026CVE-2026-78147high 7.3llama.cpp: Deserialization in the ggml-RPC ServerA vulnerability was found in ggml-org llama.cpp bec4772f6. The impacted element is the function deserialize_tensor of the file ggml/src/ggml-rpc/ggml-rpc.cpp of the component…23 Aug 2026CVE-2026-70640high 7llama.cpp: Race condition use-after-free in the LLaMA-Android JNI wrapperllama.cpp builds b1886 through b7445 contain a race condition use-after-free vulnerability in the LLaMA-Android JNI wrapper where bench_1model() and free_1context() lack…6 Aug 2026CVE-2026-70639medium 5.5llama.cpp: Null pointer dereference in the LLaMA-Android JNI wrapperllama.cpp builds b1886 through b7445 contain a null pointer dereference vulnerability in the LLaMA-Android JNI wrapper where the bench_1model() function fails to validate the…6 Aug 2026CVE-2026-70638high 7.8llama.cpp: Integer overflow in the LLaMA-Android JNI wrapperllama.cpp builds b1886 through b7445 contain an integer overflow vulnerability in the LLaMA-Android JNI wrapper where the new_1batch() function multiplies sizeof(llama_seq_id) by…6 Aug 2026CVE-2026-43632high 8.1llama.cpp: Latest b9060 contains a use-after-free in llama-server affecting six tokenization endpointsllama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in llama-server affecting six tokenization endpoints (/tokenize, /detokenize, /infill…6 Aug 2026CVE-2026-43631high 8.1llama.cpp: Latest b9060 contains a use-after-free in the vocab pointer of llama-serverllama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in the vocab pointer of llama-server when the --sleep-idle-seconds feature is enabled…6 Aug 2026CVE-2026-43630medium 6.5llama.cpp: Out-of-bounds read in the recurrent memory state restore pathllama.cpp builds b4882 before b8487 contain an out-of-bounds read vulnerability in the recurrent memory state restore path that allows attackers with write access to the slot save…6 Aug 2026CVE-2026-43629high 8.1llama.cpp: Heap buffer overflow in the KV cache state restore pathllama.cpp builds b4882 through b9058 contain a heap buffer overflow vulnerability in the KV cache state restore path where the state_read_data() function computes write size…6 Aug 2026CVE-2026-43628high 7.8llama.cpp: Integer underflow and out-of-bounds read in the DRY samplerllama.cpp builds b3978 through b9058 contain an integer underflow and out-of-bounds read vulnerability in the DRY sampler that allows unauthenticated attackers to trigger a heap…6 Aug 2026CVE-2026-43627high 7.8llama.cpp: Integer overflow in the llama_batch_init() functionllama.cpp builds b1283 through b9058 contain an integer overflow vulnerability in the llama_batch_init() function where unchecked multiplications in malloc() calls can wrap past…6 Aug 2026CVE-2026-43622high 7.8llama.cpp: Double free in the LLaMA-Android JNI wrapperllama.cpp builds b1886 through b7445 contain a double free vulnerability in the LLaMA-Android JNI wrapper where new_1batch() allocates memory using malloc() while free_1batch()…6 Aug 2026CVE-2026-18581low 3.3llama.cpp: Reachable assertion in the Jinja Minja Template ParserA vulnerability was determined in ggml-org llama.cpp e15efe0. Affected by this issue is some unknown functionality of the file common/jinja/parser.cpp of the component Jinja Minja…3 Aug 2026CVE-2026-17501medium 5.3llama.cpp: Uncontrolled recursion in JSON-Schema-to-GBNF ConversionA flaw has been found in ggml-org llama.cpp e15efe0. This vulnerability affects the function transform of the file common/json-schema-to-grammar.cpp of the component…27 Jul 2026CVE-2026-17500medium 5.3llama.cpp: Null pointer dereference in _visit_patternA vulnerability was detected in ggml-org llama.cpp d006858/e15efe0. This affects the function _visit_pattern of the file common/json-schema-to-grammar.cpp. The manipulation…27 Jul 2026CVE-2026-34159critical 9.8llama.cpp: The RPC backend's deserialize_tensor skips all bounds validation when a tensor's buffer field is 0llama.cpp is an inference of several LLM models in C/C++. Prior to version b8492, the RPC backend's deserialize_tensor() skips all bounds validation when a tensor's buffer field…1 Apr 2026CVE-2026-33298high 7.8llama.cpp: Integer overflow in the ggml_nbytes functionllama.cpp is an inference of several LLM models in C/C++. Prior to b7824, an integer overflow vulnerability in the `ggml_nbytes` function allows an attacker to bypass memory…24 Mar 2026CVE-2026-27940high 7.8llama.cpp: Integer overflow, leading to an undersized heap allocationllama.cpp is an inference of several LLM models in C/C++. Prior to b8146, the gguf_init_from_file_impl() in gguf.cpp is vulnerable to an Integer overflow, leading to an undersized…12 Mar 2026CVE-2026-2069low 3.3llama.cpp: Stack-based buffer overflow in the GBNF Grammar HandlerA flaw has been found in ggml-org llama.cpp up to 55abc39. Impacted is the function llama_grammar_advance_stack of the file llama.cpp/src/llama-grammar.cpp of the component GBNF…6 Feb 2026CVE-2026-21869high 8.8llama.cpp: The n_discard parameter is parsed directly from JSON inputllama.cpp is an inference of several LLM models in C/C++. In commits 55d4206c8 and prior, the n_discard parameter is parsed directly from JSON input in the llama.cpp server's…8 Jan 2026CVE-2025-53630high 8.9llama.cpp: Integer Overflow in the gguf_init_from_file_impl function in ggml/src/gguf.cpp can leadllama.cpp is an inference of several LLM models in C/C++. Integer Overflow in the gguf_init_from_file_impl function in ggml/src/gguf.cpp can lead to Heap Out-of-Bounds Read/Write…10 Jul 2025CVE-2025-52566high 8.6llama.cpp: Buffer overflow in llama_vocab::tokenizellama.cpp is an inference of several LLM models in C/C++. Prior to version b5721, there is a signed vs. unsigned integer overflow in llama.cpp's tokenizer implementation…24 Jun 2025CVE-2025-49847high 8.8llama.cpp: An attacker‐supplied GGUF model vocabulary can trigger a buffer overflowllama.cpp is an inference of several LLM models in C/C++. Prior to version b5662, an attacker‐supplied GGUF model vocabulary can trigger a buffer overflow in llama.cpp’s…17 Jun 2025CVE-2024-42479critical 10llama.cpp: The unsafe data pointer member in the rpc_tensor structure can cause arbitrary address writingllama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause arbitrary address writing. This vulnerability is fixed in b3561.12 Aug 2024CVE-2024-42478medium 5.3llama.cpp: The unsafe data pointer member in the rpc_tensor structure can cause arbitrary address readingllama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause arbitrary address reading. This vulnerability is fixed in b3561.12 Aug 2024CVE-2024-42477medium 5.3llama.cpp: The unsafe type member in the rpc_tensor structure can cause global-buffer-overflowllama.cpp provides LLM inference in C/C++. The unsafe `type` member in the `rpc_tensor` structure can cause `global-buffer-overflow`. This vulnerability may lead to memory data…12 Aug 2024CVE-2024-41130medium 5.4llama.cpp: Null pointer dereference in gguf_init_from_filellama.cpp provides LLM inference in C/C++. Prior to b3427, llama.cpp contains a null pointer dereference in gguf_init_from_file. This vulnerability is fixed in b3427.22 Jul 2024CVE-2024-32878high 7.1llama.cpp: Use of uninitialized heap variable in gguf_init_from_fileLlama.cpp is LLM inference in C/C++. There is a use of uninitialized heap variable vulnerability in gguf_init_from_file, the code will free this uninitialized variable later. In a…26 Apr 2024CVE-2024-23605high 8.8llama.cpp: Heap-based buffer overflow in the GGUF library header.n_kv functionalityA heap-based buffer overflow vulnerability exists in the GGUF library header.n_kv functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code…26 Feb 2024CVE-2024-23496high 8.8llama.cpp: Heap-based buffer overflow in the GGUF library gguf_fread_str functionalityA heap-based buffer overflow vulnerability exists in the GGUF library gguf_fread_str functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code…26 Feb 2024CVE-2024-21836high 8.8llama.cpp: Heap-based buffer overflow in the GGUF library header.n_tensors functionalityA heap-based buffer overflow vulnerability exists in the GGUF library header.n_tensors functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code…26 Feb 2024CVE-2024-21825high 8.8llama.cpp: A heap-based buffer overflow vulnerability existsA heap-based buffer overflow vulnerability exists in the GGUF library GGUF_TYPE_ARRAY/GGUF_TYPE_STRING parsing functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf…26 Feb 2024CVE-2024-21802high 8.8llama.cpp: Heap-based buffer overflow in the GGUF library info->ne functionalityA heap-based buffer overflow vulnerability exists in the GGUF library info->ne functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code…26 Feb 2024

Third-party tools that mention llama.cpp

Not counted above. These CVEs are in other products: plugins, wrappers and apps built on llama.cpp, or software that only names it. They do not affect llama.cpp itself. Each one is listed under its own product name.

Run llama.cpp properly

After the upgrade: the configuration and the machine.

Sources and further reading

About llama.cpp: where the advisories come from, and our breakdowns.