# CVE-2024-42478: llama.cpp allows Arbitrary Address Read in rpc_server::get_tensor

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- 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.60%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-12T15:05:12.697Z
- Modified: 2026-06-17T07:49:31.780Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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 reading. 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 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- 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-5vm9-p64x-gqw9> (exploit, vendor-advisory)
- <https://github.com/ggerganov/llama.cpp/commit/b72942fac998672a79a1ae3c03b340f7e629980b> (patch)

## Sources

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

---

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