Stack-based Buffer Overflow Affecting llama-cpp package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-LLAMACPP-15248332
  • published8 Feb 2026
  • disclosed6 Feb 2026
  • creditTYGLS

Introduced: 6 Feb 2026

CVE-2026-2069  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

There is no fixed version for llama-cpp.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the llama_grammar_advance_stack function. An attacker can cause a stack-based buffer overflow by providing specially crafted input to the GBNF Grammar Handler component.

CVSS Base Scores

version 4.0
version 3.1