p PatchFirst

CVE-2024-58399

CVE-2024-58399 · llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets

This page contains facts from public vulnerability sources. Check the original advisory before updating.

llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF tensor offsets. Attackers can supply a crafted or truncated GGUF model file with arbitrary 64-bit tensor offsets to crash the process or load adjacent process memory as model weights.

CVSS 6.9 · Medium · EPSS 0.1%

Published
Updated

Stack: system

Affected products and versions

  • llama.cpp

    Versions
    • ≥ b1046, < b2731: Affected (custom)

    No fix published

  • llama.cpp Ubuntu:26.10

    Versions
    • 8681+dfsg-1
    • 9721+dfsg-1ubuntu1
    • 10438+dfsg-1
    • 10438+dfsg-1ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • llama.cpp Ubuntu:26.04:LTS

    Versions
    • 5882+dfsg-2
    • 8064+dfsg-1ubuntu1
    • 8681+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →