SB2024022720 - Multiple vulnerabilities in llama.cpp
Published: February 27, 2024
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 5 secuirty vulnerabilities.
1) Heap-based buffer overflow (CVE-ID: CVE-2024-23605)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in the GGUF library header.n_kv functionality. A remote attacker can trick a victim to open a specially crafted .gguf file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
2) Heap-based buffer overflow (CVE-ID: CVE-2024-23496)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in the GGUF library gguf_fread_str functionality. A remote attacker can trick a victim to open a specially crafted .gguf file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
3) Heap-based buffer overflow (CVE-ID: CVE-2024-21825)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in the GGUF library GGUF_TYPE_ARRAY/GGUF_TYPE_STRING parsing functionality. A remote attacker can trick a victim to open a specially crafted .gguf file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
4) Heap-based buffer overflow (CVE-ID: CVE-2024-21802)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in the GGUF library info->ne functionality. A remote attacker can trick a victim to open a specially crafted .gguf file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
5) Heap-based buffer overflow (CVE-ID: CVE-2024-21836)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in the GGUF library header.n_tensors functionality. A remote attacker can trick a victim to open a specially crafted .gguf file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Remediation
Install update from vendor's website.
References
- https://talosintelligence.com/vulnerability_reports/TALOS-2024-1916
- https://talosintelligence.com/vulnerability_reports/TALOS-2024-1913
- https://talosintelligence.com/vulnerability_reports/TALOS-2024-1912
- https://talosintelligence.com/vulnerability_reports/TALOS-2024-1914
- https://talosintelligence.com/vulnerability_reports/TALOS-2024-1915