Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2026-27940

7.8 · HIGH
Published Mar 12, 2026 ggml CWE-122 EPSS 0.18% (7th pctl)

Overview

CVE-2026-27940 is a high-severity vulnerability affecting ggml llama.cpp. It was published on March 12, 2026 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

Technical Description

llama.cpp is an inference of several LLM models in C/C++. Prior to b8146, the gguf_init_from_file_impl() in gguf.cpp is vulnerable to an Integer overflow, leading to an undersized heap allocation. Using the subsequent fread() writes 528+ bytes of attacker-controlled data past the buffer boundary. This is a bypass of a similar bug in the same file - CVE-2025-53630, but the fix overlooked some areas. This vulnerability is fixed in b8146.

Remediation

Check the references section for vendor advisories and patches from ggml. Update llama.cpp to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
ggml llama.cpp >= 0, < b8146 Affected

Frequently Asked Questions

What is CVE-2026-27940?

CVE-2026-27940 is a high-severity vulnerability affecting ggml llama.cpp. It was published on March 12, 2026 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2026-27940?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2026-27940?

Check the references section for vendor advisories and patches from ggml. Update llama.cpp to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2026-27940?

CyberStrike's AI-powered security agents can automatically detect CVE-2026-27940 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.