Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-49847

published high CVSS 3.1 · 8.8

llama.cpp Vulnerable to Buffer Overflow via Malicious GGUF Model

Published
17 Jun 2025, 20:04:40 UTC
Updated
18 Jun 2025, 13:41:11 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
ggml-org — llama.cpp< b5662 Affected Not stated GitHub_M
SUSE / openSUSE openSUSE-Tumbleweed ggml-develaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed ggml-develppc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed ggml-devels390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed ggml-develx86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggmlaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggmlppc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggmls390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
Show 33 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed libggmlx86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-baseaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-baseppc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-bases390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-basex86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-cpuaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-cpuppc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-cpus390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-cpux86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-openclaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-openclppc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-opencls390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-openclx86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-vulkanaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-vulkanppc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-vulkans390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libggml-vulkanx86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libllamaaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libllamappc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libllamas390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libllamax86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libmtmdaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libmtmdppc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libmtmds390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed libmtmdx86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed llamacppaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed llamacppppc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed llamacpps390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed llamacppx86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed llamacpp-develaarch64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed llamacpp-develppc64le Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed llamacpp-devels390x Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1
SUSE / openSUSE openSUSE-Tumbleweed llamacpp-develx86_64 Advisory build 5699-1.1 OPENSUSE-SU-2025:15245-1

Description

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.8 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
ggml-org llama.cpp < b5662 (affected) GitHub_M · cna

Weaknesses

2
  • CWE-119 CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (GitHub_M · cna)
  • CWE-195 CWE-195: Signed to Unsigned Conversion Error (GitHub_M · cna)

References

2

Provider assertions

2

GitHub_M · cna

llama.cpp Vulnerable to Buffer Overflow via Malicious GGUF Model

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.1
Searchable
yes
Content hash
f7612e5e61c4bee80b9c25cea66d5f33bc1adc213501651166042c6146f6674d
Ingested
23 Sep 2026, 08:51:18 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected