CVE-2024-42477: llama.cpp global-buffer-overflow in ggml_type_size
Vulnerability summary
CVE-2024-42477 is a high (CVSS 7.5) Out-of-bounds Read vulnerability in ggerganov llama.cpp. EPSS estimates a 0.46% chance of exploitation in the next 30 days, higher than 40.4% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 12-08-2024PublishedVulnerability first disclosed.
- 13-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- CVE.orgCNA5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NDiffers
EPSS trend
Probability
0.46%
Chance of exploitation in the next 30 days
Percentile
40%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.46% on 21-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-125Out-of-bounds ReadThe product reads data past the end, or before the beginning, of the intended buffer.
- CWE-401Missing Release of Memory after Effective LifetimeThe product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ggerganov1 product
- llama.cpp< b3561
Ggml1 product
- llama.cpp< b3561
2 vendors · 2 products
References
2 links- github.com/ggerganov/llama.cpp/security/advisories/GHSA-mqp6-7pv6-fqjfX Refsource CONFIRMVendor Advisory