CVE-2024-23605
Homebrew vulnerability analysis and mitigation

Overview

A heap-based buffer overflow vulnerability exists in the GGUF library header.n_kv functionality of llama.cpp Commit 18c2e17. The vulnerability, identified as CVE-2024-23605, was discovered in January 2024 and affects the LLaMA.cpp project, which is a C/C++ implementation for running Large Language Models (LLMs) (Talos Report).

Technical details

The vulnerability occurs in the GGUF file format parsing functionality. The issue stems from an integer overflow in the multiplication between ctx->header.n_kv (an arbitrary uint64_t value) and sizeof(struct gguf_kv) (48 bytes), resulting in insufficient memory allocation. This can lead to a heap-based buffer overflow when writing the pointer to a string in kv->key. The vulnerability has been assigned a CVSSv3 score of 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) and is classified under CWE-190 (Integer Overflow or Wraparound) (Talos Report).

Impact

The exploitation of this vulnerability could lead to code execution on the targeted machine. An attacker can trigger this vulnerability by providing a specially crafted .gguf file, which is commonly used to store language models for inference (Talos Report).

Mitigation and workarounds

The vulnerability has been fixed in a vendor patch released on January 29, 2024. Users are advised to update to the latest version of llama.cpp that includes the security fix (Talos Report).

Community reactions

The vulnerability was independently reported by Databricks concurrently with Cisco Talos's discovery. The fix was promptly released by the vendor, demonstrating a quick response to the security issue (Talos Report).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22861HIGH8.8
  • HomebrewHomebrew
  • iccdev
NoYesJan 13, 2026
CVE-2026-22776HIGH8.7
  • HomebrewHomebrew
  • cpp-httplib
NoYesJan 12, 2026
CVE-2026-22783HIGH8.1
  • NixOSNixOS
  • iris
NoYesJan 12, 2026
CVE-2026-21283HIGH7.8
  • Adobe BridgeAdobe Bridge
  • bridge
NoYesJan 13, 2026
CVE-2026-22784LOW2.3
  • NixOSNixOS
  • lychee
NoYesJan 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management