# CVE-2024-32878: Use of Uninitialized Variable Vulnerability in llama.cpp

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2024-04-26T20:31:53.813Z
- Modified: 2026-06-17T07:30:36.297Z
- Weaknesses: CWE-456
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Llama.cpp is LLM inference in C/C++. There is a use of uninitialized heap variable vulnerability in gguf_init_from_file, the code will free this uninitialized variable later. In a simple POC, it will directly cause a crash. If the file is carefully constructed, it may be possible to control this uninitialized value and cause arbitrary address free problems. This may further lead to be exploited. Causes llama.cpp to crash (DoS) and may even lead to arbitrary code execution (RCE). This vulnerability has been patched in commit b2740.

(As written by CVE List.)

## Affected

- ggerganov llama.cpp: <= b2715; up to b2715
- ggml llama.cpp: from b2715 before b2740

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ggerganov/llama.cpp/security/advisories/GHSA-p5mv-gjc5-mwqv> (vendor-advisory)
- <https://github.com/ggerganov/llama.cpp/releases/tag/b2749> (release-notes)

## Sources

- CVE List: [CVE-2024-32878](https://www.cve.org/CVERecord?id=CVE-2024-32878), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-32878](https://nvd.nist.gov/vuln/detail/CVE-2024-32878), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-32878 · Whole record: https://cve.day/CVE-2024-32878.json · Rebuilt by cve.day 2026-11-25T22:58:39.645Z
