7.1
CWE
456
EPSS
0.043%
Advisory Published
Updated

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

First published: Fri Apr 26 2024(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
llama.cpp

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-32878?

    CVE-2024-32878 is considered to be a medium severity vulnerability due to its potential to cause crashes through uninitialized heap variables.

  • How do I fix CVE-2024-32878?

    To fix CVE-2024-32878, ensure that any heap variables are properly initialized before they are used in the code.

  • What software is affected by CVE-2024-32878?

    CVE-2024-32878 affects Llama.cpp, particularly in its method gguf_init_from_file.

  • Can CVE-2024-32878 be exploited remotely?

    CVE-2024-32878 has the potential to be exploited if an attacker can provide a specially crafted file to trigger the vulnerability.

  • What are the consequences of CVE-2024-32878?

    The consequences of CVE-2024-32878 include application crashes and potential denial of service if exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203