{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-49847","published":"2025-06-17T20:15:32.437000Z","last_modified":"2026-06-17T09:32:00.730000Z","status":"Analyzed","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-119","CWE-195"],"cpes":[{"criteria":"cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*","part":"a","vendor":"ggml","product":"llama.cpp","version_end_excluding":"b5662"}],"cpes_truncated":false,"vendors":["ggml"],"products":["ggml/llama.cpp"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":68,"links":{"html_es":"/es/cve/CVE-2025-49847/","html_en":"/en/cve/CVE-2025-49847/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-49847","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-49847"},"untrusted":{"vendor_name":"Ggml","product_name":"Llama.cpp","desc_en":"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 patched in version b5662.","affected":[{"untrusted_vendor":"ggml-org","untrusted_product":"llama.cpp","versions":[]}],"references":[{"url":"https://github.com/ggml-org/llama.cpp/commit/3cfbbdb44e08fd19429fed6cc85b982a91f0efd5","tags":["Patch"]},{"url":"https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-8wwf-w4qm-gpqr","tags":["Mitigation","Vendor Advisory"]}]}}