深刻度 低
LangChain directory traversal vulnerability
langchain-core(ライブラリ)の脆弱性です。深刻度は「低」です。修正版は 0.1.30 です。
- 対象
- langchain-core(ライブラリ)
- CVE 番号
- CVE-2024-28088
- 深刻度
- 低
- 影響を受けるバージョン
- 0.1.30 未満
- 修正版
- 0.1.30
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure …(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
langchain-core を、修正版の 0.1.30 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://nvd.nist.gov/vuln/detail/CVE-2024-28088(新しいタブで開きます)
- https://github.com/langchain-ai/langchain/pull/18600(新しいタブで開きます)
- https://github.com/langchain-ai/langchain/commit/e1924b3e93d513ca950c72f8e80e1c133749fba5(新しいタブで開きます)
- https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md(新しいタブで開きます)
- https://github.com/langchain-ai/langchain(新しいタブで開きます)
- https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py(新しいタブで開きます)
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2024-45.yaml(新しいタブで開きます)
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-43.yaml(新しいタブで開きます)
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。