# CVE-2024-23496: A heap-based buffer overflow vulnerability exists in the GGUF library gguffreadstr functionality of llama.cpp Commit 18c2e17.

- Severity: High 8.8 (CVSS:3.1, scored by talos) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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): 1.34%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-02-26T16:07:52.478Z
- Modified: 2026-06-17T07:13:03.860Z
- Weaknesses: CWE-190, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: talos

## Description

A heap-based buffer overflow vulnerability exists in the GGUF library gguf_fread_str functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

(As written by CVE List.)

## Affected

- llama.cpp llama.cpp: Commit 18c2e17
- ggerganov llama.cpp: 18c2e17
- ggml llama.cpp: before 2024-01-09

## Every score

- talos: 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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://talosintelligence.com/vulnerability_reports/TALOS-2024-1913> (exploit, third-party-advisory)
- <https://www.talosintelligence.com/vulnerability_reports/TALOS-2024-1913> (exploit, third-party-advisory)

## Sources

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

---

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