| Component | llama.cpp |
| Severity | medium (CVSS 5.3) |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| Published (NVD) | 2026-11-29 |
| Affected versions | < 0.9.0 read from the advisory text: no structured source gives these versions yet the advisory names 0.8.0 as the last affected release and 0.9.0 as the fix: the releases in between are counted as affected |
| Fixed in | 0.9.0 |
| Weakness | CWE-189CWE-190 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's record (status: Awaiting Analysis) lists no affected versions of llama.cpp for this CVE. The ranges above are read from the advisory text: neither a GitHub-reviewed advisory nor the CVE record confirms them yet.
NVD description
A 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 Library Roll Operation. The manipulation results in integer overflow. The attack needs to be approached locally. Upgrading to version 0.9.0 is able to resolve this issue. The patch is identified as 0978a6e9022fb9bd6874b86154ee304e81929b9f. It is suggested to upgrade the affected component.
What to do
- Upgrade llama.cpp to
0.9.0or later. - Do not expose the component's API or UI to the internet without authentication in front of it.
- Run llama.cpp bound to localhost and reach it over a private network rather than an open port. Tailscale for self-hosted AI · Which machine for a 7B model next to an agent · Agent plus local model, the exact setup, €12
Sources
- NVD: CVE-2026-138092
- https://github.com/ggml-org/llama.cpp/
- https://github.com/ggml-org/llama.cpp/commit/0978a6e9022fb9bd6874b86154ee304e81929b9f
- https://github.com/ggml-org/llama.cpp/pull/30375
- https://github.com/ggml-org/llama.cpp/releases/tag/v0.9.0
- https://vuldb.com/cve/CVE-2026-138092
- https://vuldb.com/submit/1071565
- https://vuldb.com/vuln/445009
- https://vuldb.com/vuln/445009/cti