CVE Explorer
CVE-2026-27940
llama.cpp is an inference of several LLM models in C/C++. Prior to b8146, the gguf_init_from_file_impl() in gguf.cpp is vulnerable to an Integer overflow, leading to an undersized heap allocation. Using the subsequent fread() writes 528+ bytes of attacker-controlled data past the buffer boundary. This is a bypass of a similar bug in the same file - CVE-2025-53630, but the fix overlooked some areas. This vulnerability is fixed in b8146.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-122","description":"CWE-122: Heap-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:25c05c18b2892e669a2ecb503740e14341cf39d5eafb9799f14fd79d5ab6ee2a · sha256:2d03def6591ef041… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:25c05c18b2892e669a2ecb503740e14341cf39d5eafb9799f14fd79d5ab6ee2a · sha256:2d03def6591ef041… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"llama.cpp","vendor":"ggml-org","versions":[{"status":"affected","version":"< b8146"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:25c05c18b2892e669a2ecb503740e14341cf39d5eafb9799f14fd79d5ab6ee2a · sha256:2d03def6591ef041… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:25c05c18b2892e669a2ecb503740e14341cf39d5eafb9799f14fd79d5ab6ee2a · sha256:2d03def6591ef041… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-122","description":"CWE-122: Heap-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:25c05c18b2892e669a2ecb503740e14341cf39d5eafb9799f14fd79d5ab6ee2a · sha256:2d03def6591ef041… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:25c05c18b2892e669a2ecb503740e14341cf39d5eafb9799f14fd79d5ab6ee2a · sha256:2d03def6591ef041… · /containers/cna/problemTypes/1/descriptions/0
Source references
1 source assertion{"name":"https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-3p4r-fq3f-q74v","tags":["x_refsource_CONFIRM"],"url":"https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-3p4r-fq3f-q74v"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:25c05c18b2892e669a2ecb503740e14341cf39d5eafb9799f14fd79d5ab6ee2a · sha256:2d03def6591ef041… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.