Local inference · NVD + CISA KEV

llama.cpp CVEs

Every vulnerability NIST NVD lists for llama.cpp, newest first, matched on the exact phrase “llama.cpp” and refreshed every 6 hours. Entries listed in CISA KEV are exploited in the wild: patch those first. Newest entry: 2026-10-07.

39
llama.cpp CVEs
1
last 30 days
0
critical, 30 days
0
exploited in the wild
newest first

All llama.cpp CVEs

Alert me on llama.cpp
high
CVE-2026-107183CVSS 8.1

llama.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 v...

llama.cpp
2026-10-07
medium
CVE-2026-86317CVSS 5.3

A 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 component...

llama.cpp
2026-09-07
high
CVE-2026-52132CVSS 7.5

llama.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 va...

llama.cpp
2026-09-01
high
CVE-2026-52131CVSS 7.5

llama.cpp b5693 and before has a Reachable Assertion via the gguf_reader::read function.

llama.cpp
2026-09-01
high
CVE-2026-52130CVSS 7.5

llama.cpp b5693 and before is vulnerable to Uncontrolled Recursion in common/json-schema-to-grammar.cpp, resulting in a denial of service.

llama.cpp
2026-09-01
medium
CVE-2026-78148CVSS 5.3

A 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 ggml...

llama.cpp
2026-08-24
high
CVE-2026-78147CVSS 7.3

A 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 ggml-...

llama.cpp
2026-08-23
high
CVE-2026-70640CVSS 7

llama.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 synchroniz...

llama.cpp
2026-08-06
medium
CVE-2026-70639CVSS 5.5

llama.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 model...

llama.cpp
2026-08-06
high
CVE-2026-70638CVSS 7.8

llama.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 a...

llama.cpp
2026-08-06
high
CVE-2026-43632CVSS 8.1

llama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in llama-server affecting six tokenization endpoints (/tokenize, /detokenize, /infill, /appl...

llama.cpp
2026-08-06
high
CVE-2026-43631CVSS 8.1

llama.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, allow...

llama.cpp
2026-08-06
medium
CVE-2026-43630CVSS 6.5

llama.cpp builds b5702 through b7653 contain an out-of-bounds read vulnerability in the recurrent memory state restore path that allows attackers with write access to the slot save...

llama.cpp
2026-08-06
high
CVE-2026-43629CVSS 8.1

llama.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 withou...

llama.cpp
2026-08-06
high
CVE-2026-43628CVSS 7.8

llama.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 bu...

llama.cpp
2026-08-06
high
CVE-2026-43627CVSS 7.8

llama.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 IN...

llama.cpp
2026-08-06
high
CVE-2026-43622CVSS 7.8

llama.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() dea...

llama.cpp
2026-08-06
low
CVE-2026-18581CVSS 3.3

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

llama.cpp
2026-08-03
medium
CVE-2026-17501CVSS 5.3

A 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 JSON-Schema-to...

llama.cpp
2026-07-27
medium
CVE-2026-17500CVSS 5.3

A 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 results...

llama.cpp
2026-07-27
critical
CVE-2026-34159CVSS 9.8

llama.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 is...

llama.cpp
2026-04-01
high
CVE-2026-33298CVSS 7.8

llama.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 valida...

llama.cpp
2026-03-24
high
CVE-2026-27940CVSS 7.8

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

llama.cpp
2026-03-12
low
CVE-2026-2069CVSS 3.3

A 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 Gr...

llama.cpp
2026-02-06
high
CVE-2026-21869CVSS 8.8

llama.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 compl...

llama.cpp
2026-01-08
high
CVE-2025-53630CVSS 8.9

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

llama.cpp
2025-07-10
high
CVE-2025-52566CVSS 8.6

llama.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 (llama_voc...

llama.cpp
2025-06-24
high
CVE-2025-49847CVSS 8.8

llama.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 vocabulary...

llama.cpp
2025-06-17
critical
CVE-2024-42479CVSS 10

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

llama.cpp
2024-08-12
medium
CVE-2024-42478CVSS 5.3

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

llama.cpp
2024-08-12
medium
CVE-2024-42477CVSS 5.3

llama.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 lea...

llama.cpp
2024-08-12
medium
CVE-2024-41130CVSS 5.4

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

llama.cpp
2024-07-22
critical
CVE-2024-34359CVSS 9.6

llama-cpp-python is the Python bindings for llama.cpp. `llama-cpp-python` depends on class `Llama` in `llama.py` to load `.gguf` llama.cpp or Latency Machine Learning Models. The `...

llama.cpp
2024-05-14
high
CVE-2024-32878CVSS 7.1

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

llama.cpp
2024-04-26
high
CVE-2024-23605CVSS 8.8

A 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 executi...

llama.cpp
2024-02-26
high
CVE-2024-23496CVSS 8.8

A 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 exec...

llama.cpp
2024-02-26
high
CVE-2024-21836CVSS 8.8

A 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 ex...

llama.cpp
2024-02-26
high
CVE-2024-21825CVSS 8.8

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

llama.cpp
2024-02-26
high
CVE-2024-21802CVSS 8.8

A 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 executi...

llama.cpp
2024-02-26
about llama.cpp

Sources and further reading