llama.cppに認証不要でメモリを読まれる脆弱性、b3701で修正
Summary
llama.cppのb3701より前の版には、llama_decodeなどでトークンIDを検証しない範囲外読み取りの脆弱性があります。認証なしの遠隔からllama-serverの/completionエンドポイントに細工したプロンプトを送ると、メモリの内容が読まれたり、プロセスが停止したりするおそれがあります。修正版はb3701です。CVSS v3は8.2、v4は8.8で、影響を受ける版を使っているなら、b3701以降へ早めに更新することをおすすめします。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
llama.cppのb3701より前の版には、llama_decodeなどでトークンIDを検証しない範囲外読み取りの脆弱性があります。認証なしの遠隔からllama-serverの/completionエンドポイントに細工したプロンプトを送ると、メモリの内容が読まれたり、プロセスが停止したりするおそれがあります。修正版はb3701です。CVSS v3は8.2、v4は8.8で、影響を受ける版を使っているなら、b3701以降へ早めに更新することをおすすめします。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| ggml-org | llama.cpp |
< b3701 |
b3701 |
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Ubuntu UBUNTU-CVE-2024-58400 llama.cpp
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com
- web github.com