llama.cppに認証なしで サービスを停止させられる脆弱性
Summary
llama.cppのGBNF文法の解析処理に整数アンダーフローの脆弱性があり、認証なしの遠隔の攻撃者がサービス拒否の状態にできます。影響を受けるのはb7118からb12604より前のllama.cppで、修正版はb12604です。修正版への更新を優先してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
llama.cppのGBNF文法の解析処理に整数アンダーフローの脆弱性があり、認証なしの遠隔の攻撃者がサービス拒否の状態にできます。影響を受けるのはb7118からb12604より前のllama.cppで、修正版はb12604です。修正版への更新を優先してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| ggml-orgllama.cpp |
≥ b7118, < b12604→ b12604 |
b12604 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-137057 llama.cpp No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-137057 llama.cpp No fixed version in this record
Original description The description as published by the source.
llama.cpp from b7118 before b12604 contains an integer underflow vulnerability in llama_grammar_parser::parse_sequence() that allows unauthenticated remote attackers to cause denial of service by supplying GBNF repetitions with max lower than min. Attackers can send a grammar like {5,2} in the grammar field of a llama-server /completion request, wrapping n_opt to generate endless repetition rules that hang the process and exhaust memory.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- report github.com
- web github.com
- web github.com