# CVE-2024-42479: llama.cpp allows write-what-where in rpc_server::set_tensor

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/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): 2.61%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-12T15:07:19.150Z
- Modified: 2026-06-17T07:49:31.890Z
- Weaknesses: CWE-123, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

llama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause arbitrary address writing. This vulnerability is fixed in b3561.

(As written by CVE List.)

## Affected

- ggerganov llama.cpp: < b3561; before b3561
- ggml llama.cpp: before b3561

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/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://github.com/ggerganov/llama.cpp/security/advisories/GHSA-wcr5-566p-9cwj> (exploit, vendor-advisory)
- <https://github.com/ggerganov/llama.cpp/commit/b72942fac998672a79a1ae3c03b340f7e629980b> (patch)

## Sources

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

---

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