SecurityContext

CVE-2024-42477: llama.cpp - Buffer Overflow

  • Cve: CVE-2024-42477
  • Name: llama.cpp - Buffer Overflow
  • 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.
  • Impact: Memory data leakage which can expose sensitive information from the system.
  • Remediation: Update to version b3561 or later where the issue is fixed.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00456
  • Epss percentile: 0.40384
  • Assignee: [email protected]
  • Published at: 2024-08-12T15:15:21Z
  • Age in days: 834
  • Modified at: 2026-06-17T07:49:31Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-42477
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-125Out-of-bounds Read
CWE-401Missing Release of Memory after Effective Lifetime

References

UrlSourceTags
https://github.com/ggerganov/llama.cpp/commit/b72942fac998672a79a1ae3c03b340f7e629980bnvdPatch
https://github.com/ggerganov/llama.cpp/security/advisories/GHSA-mqp6-7pv6-fqjfnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
ggml:llama.cpp< b3561nonvd/v1/products/ggml/llama.cpp

Projects

RepositoryLink kindsIndexedUrl
ggerganov/llama.cppcommit, security_advisoryyes/v1/repositories/ggerganov/llama.cpp
ggml-org/llama.cppfixyes/v1/repositories/ggml-org/llama.cpp

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts