CVE-2025-53630: Integer Overflow in GGUF Parser can lead to Heap Out-of-Bounds Read/Write in gguf

Published Jul 10, 2025
·
Updated

llama.cpp is an inference of several LLM models in C/C++. Integer Overflow in the ggufinitfromfileimpl function in ggml/src/gguf.cpp can lead to Heap Out-of-Bounds Read/Write. This vulnerability is fixed in commit 26a48ad699d50b6268900062661bd22f3e792579.

Affected Software

4 affected components
llama.cpp llama.cpp<26a48ad699d50b6268900062661bd22f3e792579
ubuntu/llama.cpp*
ubuntu/llama.cpp*
ubuntu/llama.cpp*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade llama.cpp to a version that resolves this vulnerability.

    Patch 26a48ad699d50b6268900062661bd22f3e792579

Event History

Jul 10, 2025
CVE Published
via MITRE·07:32 PM
Data Sourced
via MITRE·07:32 PM
DescriptionWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-53630?

CVE-2025-53630 is classified as a high-severity vulnerability due to its potential to cause heap out-of-bounds read/write.

2

How do I fix CVE-2025-53630?

To fix CVE-2025-53630, update to a version of llama.cpp that includes the fix from commit 26a48ad699d50b6268900062661bd22f3e792579.

3

Which versions of llama.cpp are affected by CVE-2025-53630?

Versions of llama.cpp prior to the commit 26a48ad699d50b6268900062661bd22f3e792579 are affected by CVE-2025-53630.

4

What kind of exploitation is possible with CVE-2025-53630?

CVE-2025-53630 can be exploited to perform a heap out-of-bounds read/write, potentially allowing an attacker to execute arbitrary code.

5

Is CVE-2025-53630 specific to any particular function?

Yes, CVE-2025-53630 specifically affects the gguf_init_from_file_impl function in ggml/src/gguf.cpp.

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