Skip to content

Path Traversal in knowns

CVE-2026-86541 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

knowns の code.replace MCP アクションに含まれる handleCodeReplace() 関数の脆弱性で、攻撃者がプロジェクトのルート外にあるファイルを上書きできます。シェルの起動スクリプトや SSH の設定ファイルが改ざんされるおそれがあり、深刻度は高とされています。0.30.0 以降に更新してください。

What is the problem

handleCodeReplace()関数におけるパストラバーサルの脆弱性です。

Affected scope

knowns バージョン0.30.0未満

Severity

攻撃者は任意のファイルを上書きでき、システム全体に影響を及ぼす可能性があります。

How to fix

バージョン0.30.0にアップデートしてください。

Workaround

入力を検証し、ディレクトリトラバーサルのパターンを除外するルールを設けます。

Detection

プロジェクトルート外のファイルが上書きされていないかログを確認します。

Original description The description as published by the source.

knowns versions before 0.30.0 contain a path traversal vulnerability in the handleCodeReplace() function that allows attackers to overwrite arbitrary files outside the project root. Attackers can supply absolute paths or relative paths containing directory traversal sequences to write malicious content to sensitive files like shell startup scripts or SSH configuration files.

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

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