Description
llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.
Published: 2026-10-27
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: Remote Information Disclosure via Out-of-Bounds Read
Action: Immediate Patch
AI Analysis

Impact

Llama.cpp prior to the b3701 tag contains a CWE-129 out-of-bounds read in the llama_decode_internal and llama_encode_internal functions. When a caller supplies token IDs that are not validated, the code reads memory locations beyond the intended bounds, allowing an attacker to exfiltrate arbitrary data from the process’s address space. This can leak model parameters or other sensitive information and may also cause a crash, resulting in a denial of service.

Affected Systems

The vulnerable product is ggml‑org llama.cpp. All builds compiled before the release tag b3701 inherit the flaw. The issue appears when the llama‑server /completion endpoint is exposed and accepts raw integer arrays as prompts. The affected installations are independent of operating system or hosting environment.

Risk and Exploitability

The CVSS score of 8.8 signals a high severity vulnerability. The EPSS score is not available, so the precise likelihood of exploitation remains unknown. The flaw is remotely exploitable without authentication through the public /completion endpoint. It has not yet appeared in CISA KEV, indicating no confirmed widespread exploitation, but the nature of the out‑of‑bounds read makes it a candidate for malicious use. An attacker can send a crafted prompt containing token IDs outside the valid range of 0 to n_vocab to read data beyond the intended embedding buffer, potentially exfiltrating memory contents or causing a crash.

Generated by OpenCVE AI on October 27, 2026 at 07:45 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ggml-org llama.cpp to the release b3701 or later where the out-of-bounds read is fixed.
  • If upgrading is not yet possible, implement server‑side validation that rejects or clamps prompt token IDs to the valid range of 0 to n_vocab before passing them to llama_decode.
  • Limit exposure of the /completion endpoint by disabling it or requiring authentication until a patch can be applied.

Generated by OpenCVE AI on October 27, 2026 at 07:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 27 Oct 2026 07:00:00 +0000

Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp

Tue, 27 Oct 2026 04:30:00 +0000

Type Values Removed Values Added
Description llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.
Title llama.cpp before b3701 Out-of-Bounds Read in llama_decode via Token IDs
First Time appeared Ggml
Ggml llama.cpp
Weaknesses CWE-129
CPEs cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
Vendors & Products Ggml
Ggml llama.cpp
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H'}

cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Ggml Llama.cpp
Ggml-org Llama.cpp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-27T00:33:57.354Z

Reserved: 2026-10-27T00:10:21.403Z

Link: CVE-2024-58400

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-27T01:19:03.080

Modified: 2026-10-27T01:19:03.080

Link: CVE-2024-58400

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T07:45:06Z

Weaknesses
  • CWE-129

    Improper Validation of Array Index