⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

llama.cpp Multimodal Projector Parsing Flaw Allows Crash via Crafted GGUF File | Alireza Bolbolabadi - Red Team Security
LOADING

llama.cpp Multimodal Projector Parsing Flaw Allows Crash via Crafted GGUF File

What the advisory describes

The Zero Day Initiative has published advisory ZDI-26-1073, tracking the issue internally as ZDI-CAN-30979 and assigned the identifier CVE-2026-131831. The affected vendor and product are listed as llama.cpp, with the vendor credited as zent.

The specific weakness lives in the parsing of multimodal projector GGUF files. According to the advisory, the issue results from a lack of proper validation of user-supplied data, which can produce a read past the end of an allocated buffer. The stated consequence is a denial-of-service condition: a crash or process termination on the system running the affected llama.cpp build.

The advisory rates the issue with a CVSS score of 5.5 and the vector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. Notably, the vector reflects availability impact only — there is no confidentiality or integrity component to the assessment.

Where the flaw sits in the stack

The vulnerable code path is the MTMD multimodal handling in llama.cpp, specifically the logic that reads multimodal projector GGUF files. Because the parser trusts values taken directly from the file, a malformed or deliberately crafted projector file can steer a read beyond the bounds of an allocated buffer.

An out-of-bounds read is a meaningfully different threat class from an out-of-bounds write. The available material describes no memory corruption primitive, no privilege escalation, and no path to information disclosure. The realistic outcome is process instability: the target process terminates, and any inference workload, multimodal request, or embedding application built on that process goes down with it.

Attack prerequisites

Exploitation requires that the target actually open the attacker's file. The advisory's UI:R designation captures this directly — user interaction or an equivalent workflow step is required — and the AV:L component means the advisory does not establish exploitation by simply sending bytes to a listening network service.

That said, AV:L does not make the exposure trivial in practice. llama.cpp is routinely embedded in servers, desktop applications, model hubs, and automation pipelines that accept uploaded files, scan model bundles, or fetch and open projector weights automatically. In each of those configurations, no privileged account is needed (PR:N), and the only remaining step is a file reaching the parser.

What has been fixed and what remains unknown

llama.cpp has issued an update to correct the vulnerability, with details available in the upstream pull request:

  • https://github.com/ggml-org/llama.cpp/pull/29276

The supplied context contains no affected version numbers, so the precise vulnerable release range and the first release containing the fix cannot be stated from this material alone. Identifying the fixed build therefore depends on tracking the referenced pull request and the upstream commit history rather than a version boundary given in the advisory.

The disclosure timeline is also worth noting: the issue was reported to the vendor on 2026-05-22 and the coordinated public release occurred on 2026-11-24, with the advisory updated the same day.

Practical implications

For operators running llama.cpp with multimodal features enabled, the exposure concentrates around where untrusted projector files enter a system. Servers that accept model or adapter uploads, and tooling that indexes or converts model bundles, are the most natural candidates. For local desktop or CLI use, the risk is closer to a targeted file delivered through a download, a chat link, or a shared model repository.

Because the impact is availability-only and depends on a file being opened, the exposure-reduction measures that carry the most weight are simple: keep the library updated, avoid handing untrusted projector files to the parser without validation, and where a service must accept arbitrary files, isolate parsing in a worker process with memory and restart controls so a crash does not take the primary service down with it.

Assessment

The technical substance here is an input-validation defect in a file parser, with a CVSS of 5.5 and an availability-only impact profile. Nothing in the available information supports claims of reliable remote exploitation, memory disclosure, privilege escalation, or code execution. The realistic consequence is a denial of service, and the fix is publicly available upstream.

advisory medium
·
← بازگشت به رایتاپ‌ها