Privilege escalation in llama.cpp



Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2024-42479
CWE-ID CWE-787
Exploitation vector Local
Public exploit N/A
Vulnerable software
llama.cpp
Other software / Other software solutions

Vendor ggerganov

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Out-of-bounds write

EUVDB-ID: #VU99622

Risk: Low

CVSSv4.0: 5.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2024-42479

CWE-ID: CWE-787 - Out-of-bounds write

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error within the LLM inference. A local user can trigger an out-of-bounds write and execute arbitrary code on the target system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

llama.cpp: b1046 - ci cublas linux-b1104-cec628e

CPE2.3 External links

https://github.com/ggerganov/llama.cpp/security/advisories/GHSA-wcr5-566p-9cwj
https://github.com/ggerganov/llama.cpp/commit/b72942fac998672a79a1ae3c03b340f7e629980b


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###