p PatchFirst

PatchFirst · Свежие уязвимости

Уязвимости llama.cpp · Страница 2

За последние 30 дней в llama.cpp опубликовано уязвимостей: 8; в каталоге KEV: 0.

Фильтры уязвимостей
Сбросить фильтры

Уязвимостей: 36

  1. CVE-2026-43627

    Высокий · CVSS 8.5EPSS 0,2%Нет опубликованного исправления

    llama.cpp b1283–b9058 Integer Overflow in llama_batch_init() Function

    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 INT32_MAX when computing allocation sizes. Attackers can pass specially crafted parameters to trigger integer overflow, causing heap corruption and potentially achieving arbitrary code execution through subsequent batch operations that write past allocated buffer boundaries.

    Опубликовано Обновлено
  2. CVE-2026-70640

    Высокий · CVSS 7.3EPSS 0,24%Есть исправление

    llama.cpp b1886–b7445 Race Condition Use-After-Free via llama-android.cpp

    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 synchronization, allowing Thread A to operate on freed memory while Thread B concurrently frees the llama_context. Attackers can exploit this by performing heap spray with attacker-controlled data containing a fake vtable to hijack the vtable pointer at offset +0x30, causing llama_batch_allocr::clear() to dereference arbitrary memory and achieve remote code execution.

    • Обновитесь до 7593+dfsg-1
    Опубликовано Обновлено
  3. CVE-2026-70639

    Средний · CVSS 6.8EPSS 0,19%Есть исправление

    llama.cpp b1886–b7445 Null Pointer Dereference DoS via llama-android.cpp

    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 context pointer before dereferencing it. Attackers can supply a malicious, corrupt, or truncated model file to trigger a null context condition, causing a SIGSEGV crash that terminates the Android application process and results in denial of service.

    • Обновитесь до 7593+dfsg-1
    Опубликовано Обновлено
  4. CVE-2026-70638

    Высокий · CVSS 8.5EPSS 0,23%Есть исправление

    llama.cpp b1886–b7445 Integer Overflow via new_1batch() in llama-android.cpp

    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 an attacker-controlled n_seq_max parameter without overflow validation, causing heap buffer allocation to wrap and allocate insufficient memory. Attackers can exploit this by providing a crafted n_seq_max value through a malicious model file or JNI call to trigger heap corruption and achieve denial of service or arbitrary code execution on Android applications using the LLaMA-Android binding.

    • Обновитесь до 7593+dfsg-1
    Опубликовано Обновлено
  5. CVE-2026-43622

    Высокий · CVSS 8.5EPSS 0,23%Есть исправление

    llama.cpp b1886–b7445 Double Free via llama-android.cpp

    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() deallocates it using the C++ delete operator, causing heap metadata corruption. Attackers can trigger this memory management mismatch to cause denial of service through process crashes or potentially achieve arbitrary code execution depending on allocator state.

    • Обновитесь до 7593+dfsg-1
    Опубликовано Обновлено
  6. CVE-2026-18581

    Средний · CVSS 4.8EPSS 0,16%Нет опубликованного исправления

    ggml-org llama.cpp Jinja Minja Template parser.cpp assertion

    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 Template Parser. Executing a manipulation with the input {{9|9|{ can lead to reachable assertion. The attack requires local access. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.

    Опубликовано Обновлено
  7. CVE-2026-17501

    Средний · CVSS 6.9EPSS 0,72%Нет опубликованного исправления

    ggml-org llama.cpp JSON-Schema-to-GBNF Conversion json-schema-to-grammar.cpp transform recursion

    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-GBNF Conversion. This manipulation causes uncontrolled recursion. The attack may be initiated remotely. The pull request to fix this issue awaits acceptance.

  8. CVE-2026-17500

    Средний · CVSS 6.9EPSS 0,72%Нет опубликованного исправления

    ggml-org llama.cpp json-schema-to-grammar.cpp _visit_pattern null pointer dereference

    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 in null pointer dereference. The attack can be launched remotely. The pull request to fix this issue awaits acceptance.

  9. CVE-2026-34159

    Критический · CVSS 9.8EPSS 1,62%Есть исправление

    llama.cpp: Unauthenticated RCE via GRAPH_COMPUTE buffer=0 bypass in llama.cpp RPC backend

    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 0. An unauthenticated attacker can read and write arbitrary process memory via crafted GRAPH_COMPUTE messages. Combined with pointer leaks from ALLOC_BUFFER/BUFFER_GET_BASE, this gives full ASLR bypass and remote code execution. No authentication required, just TCP access to the RPC server port. This issue has been patched in version b8492.

    • Обновитесь до 8611+dfsg-1
    Опубликовано Обновлено
  10. CVE-2026-33298

    Высокий · CVSS 7.8EPSS 0,5%Есть исправление

    llama.cpp has a Heap Buffer Overflow via Integer Overflow in GGUF Tensor Parsing

    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 validation by crafting a GGUF file with specific tensor dimensions. This causes `ggml_nbytes` to return a significantly smaller size than required (e.g., 4MB instead of Exabytes), leading to a heap-based buffer overflow when the application subsequently processes the tensor. This vulnerability allows potential Remote Code Execution (RCE) via memory corruption. b7824 contains a fix.

    • Обновитесь до 7965+dfsg-1
  11. CVE-2026-27940

    Высокий · CVSS 7.8EPSS 0,19%Есть исправление

    llama.cpp has a Heap Buffer Overflow via Integer Overflow in `mem_size` Calculation — Bypass of CVE-2025-53630 Fix

    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 heap allocation. Using the subsequent fread() writes 528+ bytes of attacker-controlled data past the buffer boundary. This is a bypass of a similar bug in the same file - CVE-2025-53630, but the fix overlooked some areas. This vulnerability is fixed in b8146.

    • Обновитесь до 8461+dfsg-1
    Опубликовано Обновлено
  12. CVE-2026-2069

    Средний · CVSS 4.8EPSS 0,14%Нет опубликованного исправления

    ggml-org llama.cpp GBNF Grammar llama-grammar.cpp llama_grammar_advance_stack stack-based overflow

    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 Grammar Handler. This manipulation causes stack-based buffer overflow. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 18993. To fix this issue, it is recommended to deploy a patch.

    Опубликовано Обновлено
  13. CVE-2026-21869

    Высокий · CVSS 8.8EPSS 0,53%Есть исправление

    llama.cpp has Out-of-bounds Write in llama-server

    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 completion endpoints without validation to ensure it's non-negative. When a negative value is supplied and the context fills up, llama_memory_seq_rm/add receives a reversed range and negative offset, causing out-of-bounds memory writes in the token evaluation loop. This deterministic memory corruption can crash the process or enable remote code execution (RCE). There is no fix at the time of publication.

    • Обновитесь до 7593+dfsg-1
    Опубликовано Обновлено
  14. CVE-2025-53630

    Высокий · CVSS 8.9EPSS 0,36%Есть исправление

    Integer Overflow in GGUF Parser can lead to Heap Out-of-Bounds Read/Write in gguf

    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. This vulnerability is fixed in commit 26a48ad699d50b6268900062661bd22f3e792579.

    • Обновитесь до 5882+dfsg-1
  15. CVE-2025-52566

    Высокий · CVSS 8.6EPSS 0,36%Есть исправление

    llama.cpp tokenizer signed vs. unsigned heap overflow

    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_vocab::tokenize) (src/llama-vocab.cpp:3036) resulting in unintended behavior in tokens copying size comparison. Allowing heap-overflowing llama.cpp inferencing engine with carefully manipulated text input during tokenization process. This issue has been patched in version b5721.

    • Обновитесь до 5760+dfsg-1
  16. CVE-2025-49847

    Высокий · CVSS 8.8EPSS 0,52%Есть исправление

    llama.cpp Vulnerable to Buffer Overflow via Malicious GGUF Model

    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‐loading code. Specifically, the helper _try_copy in llama.cpp/src/vocab.cpp: llama_vocab::impl::token_to_piece() casts a very large size_t token length into an int32_t, causing the length check (if (length < (int32_t)size)) to be bypassed. As a result, memcpy is still called with that oversized size, letting a malicious model overwrite memory beyond the intended buffer. This can lead to arbitrary memory corruption and potential code execution. This issue has been p

    • Обновитесь до 5713+dfsg-1

Проверьте свой сервер

Сопоставьте установленный стек и версии со свежими базами уязвимостей.

Проверьте свой сервер →