{"id":"UBUNTU-CVE-2026-116816","details":"llama.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 models. Attackers can supply BYTE-typed token text like \u003c0x-1\u003e whose negative parsed value writes token ids before the bytes_ buffer during model loading, causing crashes or potential code execution.","modified":"2026-10-28T20:17:46.292413063Z","published":"2026-10-27T01:19:00Z","upstream":["CVE-2026-116816"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-116816"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-116816"},{"type":"REPORT","url":"https://github.com/cveproject/cvelistv5/tree/main/cves/2026/116xxx/cve-2026-116816.json"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/blob/b10259/src/llama-vocab.cpp#l1376-l1377"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/pull/25969"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/pull/26511"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/releases/tag/b10261"},{"type":"REPORT","url":"https://nvd.nist.gov/vuln/detail/cve-2026-116816"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/llama-cpp-b5899-before-b10261-heap-out-of-bounds-write-via-plamo2-tokenizer"}],"affected":[{"package":{"name":"llama.cpp","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/llama.cpp?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8681+dfsg-1","9721+dfsg-1ubuntu1","10438+dfsg-1","10438+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"10438+dfsg-1ubuntu1","binary_name":"libllama0"},{"binary_version":"10438+dfsg-1ubuntu1","binary_name":"llama.cpp"},{"binary_name":"llama.cpp-examples","binary_version":"10438+dfsg-1ubuntu1"},{"binary_version":"10438+dfsg-1ubuntu1","binary_name":"llama.cpp-services"},{"binary_name":"llama.cpp-tests","binary_version":"10438+dfsg-1ubuntu1"},{"binary_version":"10438+dfsg-1ubuntu1","binary_name":"llama.cpp-tools"},{"binary_name":"llama.cpp-tools-extra","binary_version":"10438+dfsg-1ubuntu1"},{"binary_name":"python3-gguf","binary_version":"10438+dfsg-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-116816.json"}},{"package":{"name":"llama.cpp","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/llama.cpp?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5882+dfsg-2","8064+dfsg-1ubuntu1","8681+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"8681+dfsg-1","binary_name":"libllama0"},{"binary_name":"llama.cpp","binary_version":"8681+dfsg-1"},{"binary_name":"llama.cpp-examples","binary_version":"8681+dfsg-1"},{"binary_version":"8681+dfsg-1","binary_name":"llama.cpp-tests"},{"binary_name":"llama.cpp-tools","binary_version":"8681+dfsg-1"},{"binary_name":"llama.cpp-tools-extra","binary_version":"8681+dfsg-1"},{"binary_version":"8681+dfsg-1","binary_name":"python3-gguf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-116816.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}