提交 #1052496: ggml-org llama.cpp (llama-server) 0.7.0-dev, build 50 Denial of Service信息

标题ggml-org llama.cpp (llama-server) 0.7.0-dev, build 50 Denial of Service
描述A reachable assertion in the llama-server component of llama.cpp allows an attacker with access to the completion API to terminate the entire server process by submitting a crafted HTTP request. Exploitation does not require authentication when the endpoint is accessible without an API key or other access controls. The server accepts the client-supplied grammar_triggers[].type integer and casts it to common_grammar_trigger_type without validating that it represents a supported enum value. An unsupported value, such as 99, subsequently reaches the default branch of a switch statement in common_sampler_init in common/sampling.cpp, triggering GGML_ASSERT and aborting the process with SIGABRT. The surrounding C++ exception handler does not intercept this process termination. A single crafted POST request to /completion or /v1/completions can trigger the failure without requiring a grammar definition or special grammar configuration. The resulting process termination interrupts all active inference requests and makes the server unavailable until restarted. The reported path does not affect /v1/chat/completions, which removes grammar_triggers before processing. The issue was reproduced on Linux x86_64 and independently reproduced on macOS arm64. The demonstrated impact is loss of service availability.
来源⚠️ https://github.com/ggml-org/llama.cpp/issues/30835
用户
 Zyz3366 (UID 97230)
提交2026-10-22 21時12分 (1 月前)
管理2026-11-21 04時25分 (29 days later)
状态已接受
VulDB条目441681 [ggml-org llama.cpp 0.7.0-dev llama-server common/sampling.cpp common_sampler_init grammar_triggers[].type 权限提升]
积分20

Interested in the pricing of exploits?

See the underground prices here!