DSPy 3.3.0b1 contains a file exfiltration vulnerability in the Image and Audio output field...
概要
DSPy 3.3.0b1 contains a file exfiltration vulnerability in the Image and Audio output field...
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
DSPy 3.3.0b1 contains a file exfiltration vulnerability in the Image and Audio output field adapters that allows attackers with influence over language model outputs to read arbitrary local files by injecting a filesystem path into the url field of a parsed Image or Audio typed output. The JSONAdapter and ChatAdapter parse untrusted language model completions through parse_value into TypeAdapter validation, which triggers encode_image or encode_audio to read and base64-encode any local file path via the os.path.isfile branch in image.py and audio.py, subsequently embedding the file contents into outgoing prompt messages sent to the attacker-controlled model endpoint.
出典: NIST National Vulnerability Database NVD GitHub Advisory
AI要約
外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
DSPy 3.3.0b1には、攻撃者が任意のローカルファイルを読み取ることができるファイル抽出の脆弱性があります。この脆弱性は、画像および音声出力フィールドアダプタに存在し、攻撃者は言語モデルの出力に影響を与えることでファイルシステムパスを注入することができます。この結果、攻撃者はローカルファイル内容をベース64でエンコードし、攻撃者が制御するモデルエンドポイントに送信することができます。
ファイル抽出の脆弱性は、任意のローカルファイルを読み取ることができるものです。
ImageおよびAudio出力フィールドアダプタ
攻撃者がシステムのローカルファイルにアクセスできるため、セキュリティリスクは非常に高いです。
DSPyアダプタのコードを見直し、ファイルパスの注入を防ぐための検証を追加します。
一時的な回避策は特にありませんが、言語モデル出力の信頼性を高めるための入力検証を強化することが考えられます。
ImageおよびAudio出力が外部に送信される際の中身を解析し、不審なファイルパスの存在を確認します。