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

Published Apr 26, 2024
·
Updated

Llama.cpp is LLM inference in C/C++. There is a use of uninitialized heap variable vulnerability in ggufinitfromfile, 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.

Affected Software

2 affected components
Llama llama.cpp
ggml llama.cpp>=b2715<b2740

Event History

Apr 26, 2024
CVE Published
via MITRE·08:31 PM
Data Sourced
via MITRE·08:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

What software is affected by CVE-2024-32878?

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

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203