CVE-2024-42479
Homebrew vulnerability analysis and mitigation

Overview

CVE-2024-42479 is a critical security vulnerability discovered in llama.cpp, a C/C++ library for LLM inference. The vulnerability stems from an unsafe data pointer member in the rpc_tensor structure that can cause arbitrary address writing. This vulnerability was discovered by 7resp4ss from 360 Vulnerability Research Institute and was fixed in version b3561 (GitHub Advisory, NVD).

Technical details

The vulnerability is classified as a "Write-what-where" condition in the rpc_server::set_tensor function, with a CVSS v3.1 score of 9.8 (Critical). The issue arises from the unsafe handling of data pointers within the rpc_tensor structure, which can be controlled by users to write data to arbitrary memory locations. The vulnerability chain involves multiple function calls, including start_rpc_server, rpc_serve_client, and ultimately ggml_backend_cpu_buffer_set_tensor where the arbitrary write occurs (Security Online, GitHub Advisory).

Impact

The vulnerability has severe implications as it can be exploited to achieve Remote Code Execution (RCE). The issue affects llama_cpp_python, a Python binding for the llama.cpp library, which has over 3 million downloads, significantly amplifying the potential impact. When successfully exploited, this vulnerability could lead to unauthorized access, data breaches, and potentially full system compromise (Security Online).

Exploitability

A proof-of-concept exploit has been developed and demonstrated by security researchers. The vulnerability can be combined with another arbitrary address reading vulnerability to achieve Remote Code Execution. A demonstration video showing the successful exploitation has been made available by the researchers (GitHub Advisory).

Mitigation and workarounds

Users are strongly advised to update to version b3561 or later of llama.cpp to address this vulnerability. Organizations using llama_cpp_python in their AI and machine learning projects should prioritize this update due to the critical nature of the vulnerability (ASEC).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

sid

llama.cpp

Fixed

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-17627HIGH7.1
  • Homebrew logoHomebrew
  • langflow
NoYesSep 04, 2026
CVE-2026-17631MEDIUM6.5
  • Homebrew logoHomebrew
  • langflow
NoYesSep 04, 2026
CVE-2026-17622MEDIUM6.5
  • Homebrew logoHomebrew
  • langflow
NoYesSep 04, 2026
CVE-2026-14470MEDIUM6.5
  • Homebrew logoHomebrew
  • langflow
NoYesSep 04, 2026
CVE-2026-17621MEDIUM5.4
  • Homebrew logoHomebrew
  • langflow
NoYesSep 04, 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