CVE catalog

CVE-2025-49847

ggml-devel-5699-1.1 on GA media

[CVE catalog]

Severity
Unknown
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.52% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianllama.cpp145151+dfsg-1~exp2vulnerable
Debianllama.cpp145151+dfsg-1~exp3vulnerable
Debianllama.cpp145318+dfsg-1vulnerable
Debianllama.cpp145318+dfsg-2vulnerable
Debianllama.cpp145713+dfsg-1fixed
Opensusellamacpptumbleweed5699-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianllama.cppdeb145713+dfsg-1Not reportedDEBIAN-CVE-2025-49847Not reported
Opensusellamacpprpmtumbleweed5699-1.1Not reportedOPENSUSE-SU-2025:15245-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • [ggml-devel]Unknown

    Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • [libggml0]Unknown

    Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • [libggml-base0]Unknown

    Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • [libggml-cpu]Unknown

    Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • [libllama0]Unknown

    Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • [libmtmd0]Unknown

    Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5699-1.1

      Version impact unknown

      pypi · llamacpp · opensuse · tumbleweed

  • [llamacpp]Fixed

    Source package: [llamacpp]

    Details (1)
    • 10154-1.3 · x86_64 · tumbleweed

      Fixed · Fixed: 5699-1.1

      pypi · llamacpp · opensuse · tumbleweed

Observed:

References