Home » Database

AVID-2026-R1473

Description

Use of Uninitialized Variable Vulnerability in llama.cpp (CVE-2024-32878)

Details

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.

Reason for inclusion in AVID: CVE-2024-32878 describes an uninitialized-variable vulnerability in llama.cpp, a library used for LLM inference. This is a software vulnerability in a component used in AI systems (models/inference stacks). It affects the AI software stack and could lead to DoS or arbitrary code execution, indicating a security/safety vulnerability. llama.cpp is a general-purpose AI tooling library, so this is within the software supply chain of general-purpose AI systems (dependencies, runtimes, model-serving/inference components). The report provides CVE details, CWE, CVSS, and references, giving sufficient signal for inclusion. No hardware/firmware-only issues are involved. Therefore, it should be kept for AVID curation as a GP AI supply chain vulnerability.

References

Affected or Relevant Artifacts

  • Developer: Meta
  • Deployer: ggerganov
  • Artifact Details:
TypeName
Systemllama.cpp

Impact

AVID Taxonomy Categorization

  • Risk domains: Security
  • SEP subcategories: S0100: Software Vulnerability
  • Lifecycle stages: L06: Deployment

CVSS

Version3.1
Vector StringCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
Base Score7.1
Base Severity🔴 High
Attack VectorNETWORK
Attack Complexity🔴 High
Privileges RequiredNONE
User InteractionREQUIRED
ScopeUNCHANGED
Confidentiality Impact🔴 High
Integrity Impact🔴 High
Availability Impact🟢 Low

CWE

IDDescription
CWE-456CWE-456: Missing Initialization of a Variable

Other information

  • Report Type: Advisory
  • Credits:
  • Date Reported: 2024-04-26
  • Version: 0.3.3
  • AVID Entry