CVE-2024-42477: llama.cpp - Buffer Overflow
- Cve: CVE-2024-42477
- Name: llama.cpp - Buffer Overflow
- Description: llama.cpp provides LLM inference in C/C++. The unsafe `type` member in the `rpc_tensor` structure can cause `global-buffer-overflow`. This vulnerability may lead to memory data leakage. The vulnerability is fixed in b3561.
- Impact: Memory data leakage which can expose sensitive information from the system.
- Remediation: Update to version b3561 or later where the issue is fixed.
- Vulnerability type: buffer_overflow
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00456
- Epss percentile: 0.40384
- Assignee: [email protected]
- Published at: 2024-08-12T15:15:21Z
- Age in days: 834
- Modified at: 2026-06-17T07:49:31Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-42477
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
| CWE-401 | Missing Release of Memory after Effective Lifetime |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ggml:llama.cpp | < b3561 | no | nvd | /v1/products/ggml/llama.cpp |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ggerganov/llama.cpp | commit, security_advisory | yes | /v1/repositories/ggerganov/llama.cpp |
| ggml-org/llama.cpp | fix | yes | /v1/repositories/ggml-org/llama.cpp |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts