Out-of-bounds read in llama.cpp - CVE-2024-42478
Published: March 26, 2026
Vulnerability identifier: #VU124636
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-42478
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition in the rpc_tensor structure. A remote attacker can send a specially crafted request to the application, trigger an out-of-bounds read error and read contents of memory on the system.
Affected software
llama.cpp
How to mitigate CVE-2024-42478
Install updates from vendor's website.
llama.cpp - update to b3561