Skip to content
High 8.8

llama.cppに認証不要でメモリを読まれる脆弱性、b3701で修正

CVE-2024-58400 First seen on SecPulse

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

EcosystemPackageAffectedFixed
ggml-org llama.cpp
< b3701
b3701

Fix status by distribution

Fixed packages published by each distribution for this CVE

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details