| タイトル | AnysphereのCursorにおけるリンク解釈に関する脆弱性 |
|---|---|
| 概要 | CursorはAIを活用したプログラミング向けコードエディタです。バージョン3.0以前では、Cursorはエージェントのターミナルコマンドをデフォルトでサンドボックス内で実行していました。Write操作の前に、エージェントは対象パスを正規化してワークスペース内に留まっていることを確認しますが、正規化に失敗した場合は元のパスに戻り、承認なしで書き込みを行います。悪意のあるエージェントは、ワークスペース内にワークスペース外を指すシンボリックリンクを作成し、ターゲットが存在しないかパスの読み取り権限が削除されているために正規化を失敗させ、承認なしにシンボリックリンク経由で任意の場所に書き込みを強制できます。これにより、悪意のあるエージェントはユーザー権限下でワークスペース外に任意のファイルを書き込むことが可能となります。この脆弱性を利用すると、後のコマンドがサンドボックス外で実行されるようにcursorsandboxヘルパーを上書きするなどして、ユーザーの操作なしに非サンドボックス環境でのリモートコード実行が可能になります。この脆弱性はバージョン3.0で修正されました。 |
| 想定される影響 | ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年6月25日0:00 |
| 登録日 | 2026年6月29日11:13 |
| 最終更新日 | 2026年6月29日11:13 |
| CVSS3.0 : 緊急 | |
| スコア | 9.8 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Anysphere |
| Cursor 3.0 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月29日] 掲載 |
2026年6月29日11:13 |
| 概要 | Cursor is a code editor built for programming with AI. Prior to 3.0, Cursor runs agent terminal commands in a sandbox by default. Before a Write, the agent canonicalizes the target path to confirm it stays inside the workspace, but when canonicalization fails it falls back to the original path and writes without approval. A malicious agent can create an in-workspace symlink that points outside the workspace and force canonicalization to fail — either because the target does not exist or because read permission is removed from the path — so the agent writes through the symlink to an arbitrary location without approval. A malicious agent could write arbitrary files outside the workspace under the user's privileges. This enables non-sandboxed Remote Code Execution — for example by overwriting the cursorsandbox helper so later commands run unsandboxed — with no user interaction beyond a benign prompt. This vulnerability is fixed in 3.0. |
|---|---|
| 公表日 | 2026年6月26日4:16 |
| 登録日 | 2026年6月27日4:30 |
| 最終更新日 | 2026年6月27日1:51 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:* | 3.0 | ||||