Skip to main content

llamafile CVE-2026-133498

| EUVDEUVD-2026-131098 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-20 VulDB GHSA-343f-xvvw-gq36
5.3
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted llamafile/ZIP container
  2. Exploit
    Victim opens file in llamafile parser
  3. Execution
    Malformed extra-field size overruns bounds check
  4. Impact
    Out-of-bounds read leaks memory or crashes process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to supply a maliciously crafted ZIP/llamafile container (llamafile packages weights and runtime as a ZIP) in which a central-directory 'extra' field declares a size that exceeds the buffer, and requires a victim/process to open or parse that container with an affected llamafile version up to and including 0.10.5 - this matches CVSS UI:P (passive user interaction). The vulnerable code path is the extra-field iteration in get_zip_cfile_* (zip.c) that advanced by ZIP_EXTRA_SIZE(p) without first confirming kZipExtraHdrSize bytes remain. LIMITING FACTORS: a user or automated process must load the attacker's file (not reachable against a passive default service with no file input), no authentication is defeated because none is required, and the impact is bounded to an out-of-bounds read (memory disclosure or denial via crash), not write or code execution.

Impact

This is a moderate, not urgent, issue and the signals are internally consistent at that level. The CVSS 4.0 base score is 5.3 (vendor/VulDB-assigned) with AV:N/AC:L/AT:N/PR:N/UI:P and only Low impacts to confidentiality, integrity and availability - an out-of-bounds READ (CWE-125), which typically leaks adjacent memory or crashes the process rather than enabling code execution. The vuln.today decision label is 'this_month', not act_now or emergency, aligning with the modest impact. No EPSS score, no CISA KEV listing, and no confirmed public exploit code were supplied, so there is no evidence of active or imminent widespread exploitation. The UI:P metric is important: exploitation is not fully automatable because a user/process must be induced to open the attacker-controlled container, which meaningfully limits mass exploitation. One data caveat: the NVD-style description names the function llamafile_open_zip in llamafile/llamafile.c, but the vendor patch (PR #1044) actually fixes get_zip_cfile_uncompressed_size/compressed_size/offset in llamafile/zip.c - the fix location and the described function/file differ, so the exact code path should be confirmed against the commit. Net: a genuine but low-severity bug warranting routine patching, not an emergency.

Exploit ScenarioDerived

An attacker crafts a malformed llamafile/ZIP archive whose ZIP 'extra' field advertises a size that runs past the end of the buffer. When a victim loads or opens this container with llamafile, the central-directory extra-field parsing loop reads beyond the allocated bounds, potentially disclosing small amounts of adjacent process memory or crashing the process. No confirmed public exploit code was identified in the provided data; the GitHub issue and patch PR describe the defect, not a weaponized exploit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

An out-of-bounds read in mozilla-ai llamafile's ZIP container parser (llamafile/zip.c) affects versions up to and including 0.10.5 and allows remote attackers to read past the end of a memory buffer or crash the process by supplying a crafted llamafile/ZIP archive whose central-directory 'extra' field declares an oversized length. The flaw is reachable without authentication (CVSS:4.0 PR:N) but requires a victim or automated process to open the malicious container, which corresponds to passive user interaction (UI:P); impact is limited to partial confidentiality and availability loss, with no write or code execution. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the vendor has released version 0.10.6 with a documented patch commit (5ac1c4dbb76737fee71a54922df95342c667ba6f).

RemediationAI

Upgrade to llamafile 0.10.6, the vendor-released fixed version, or apply the upstream patch commit 5ac1c4dbb76737fee71a54922df95342c667ba6f as shipped in PR https://github.com/mozilla-ai/llamafile/pull/1044, which adds the missing kZipExtraHdrSize bounds check to the extra-field loops in llamafile/zip.c. Obtain the release from https://github.com/mozilla-ai/llamafile/releases/tag/0.10.6 and track the vendor issue at https://github.com/mozilla-ai/llamafile/issues/1038. Because exploitation requires the victim or an automated pipeline to load an attacker-supplied llamafile/ZIP container, the practical compensating control for environments that cannot upgrade immediately is to restrict processing of llamafile containers to files from trusted, integrity-verified sources (or scan and re-wrap untrusted archives before parsing); the trade-off is that this blocks legitimate third-party model distribution and does not protect any workflow that must open untrusted downloads. Deployments that only run locally trusted containers are at low exposure, but the risk grows where llamafile files are fetched from public repositories or user uploads.

Affected VersionsENISA

llamafile .0.10.2
llamafile .0.10.5
llamafile .0.10.1
llamafile .0.10.3
llamafile .0.10.4

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

llamafile packages a model's weights together with the runtime inside a single executable that is structured as a ZIP archive, so every launched llamafile is also parsed as a container. The vulnerable code lives in the ZIP parser (llamafile/zip.c), specifically the central-directory 'extra' field iteration used by get_zip_cfile_uncompressed_size, get_zip_cfile_compressed_size and get_zip_cfile_offset. The loop advanced with p += ZIP_EXTRA_SIZE(p) but only bounded the result with p + ZIP_EXTRA_SIZE(p) <= pe, so when fewer bytes than the extra-field header (kZipExtraHdrSize) remained, the size fields were read before their presence inside the buffer was established - a classic CWE-125 out-of-bounds read. The upstream fix (PR 1044, commit 5ac1c4db) adds a p + kZipExtraHdrSize <= pe guard to all three loops before evaluating ZIP_EXTRA_SIZE(p). Note that the CVE description cites the function llamafile_open_zip in llamafile/llamafile.c and a 'size' argument, whereas the actual patch touches the get_zip_cfile_* helpers in zip.c; the two are consistent in root cause but the description's function-level detail should be treated as approximate. Consequences are bounded to memory disclosure or a crash (denial of service) of the parsing process; there is no out-of-bounds write.

Know when Llamafile gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.4 MEDIUM

Crafted file is delivered over the network but a user must open it (AV:N, UI:R, PR:N); an out-of-bounds read yields limited memory disclosure and possible crash, so C:L/A:L and I:N.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A flaw has been found in mozilla-ai llamafile up to .0.10.5. This issue affects the function llamafile_open_zip of the file llamafile/llamafile.c of the component Container Parser. This manipulation of the argument size causes out-of-bounds read. The attack is possible to be carried out remotely. Upgrading to version 0.10.6 is capable of addressing this issue. Patch name: 5ac1c4dbb76737fee71a54922df95342c667ba6f. It is advisable to upgrade the affected component.

Threat Intelligence Overview

EPSS Score
0.6%
Top 52% exploitable
Prevalence
Low
niche AI developer tool, limited production/enterprise deployment footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy