[Eclipse Theia] Arbitrary Command Execution via Untrusted Workspace Task Definitions
Eclipse Foundation Eclipse Theia
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @theia/debug npm |
|
|
| @theia/task npm |
|
|
| @theia/workspace npm |
Eclipse Foundation Eclipse Theia
| Product | Affected | Fixed in |
|---|---|---|
| @theia/debug npm |
|
|
| @theia/task npm |
|
|
| @theia/workspace npm |
< 1.69.0
|
In Eclipse Theia versions prior to 1.69.0, custom task definitions in workspace files (e.g. .theia/tasks.json, .vscode/tasks.json) could be executed without requiring workspace trust. An attacker could craft a malicious repository that, when cloned and opened in Theia, leads to execution of arbitrary commands with the user's privileges. In combination with AI chat features and a workspace .theia/settings.json that disabled tool confirmation, this could be triggered automatically by sending a message in the AI chat.
From the CVE record · eclipse
In Eclipse Theia before 1.69.0, custom task definitions in workspace files can run without workspace trust. An attacker can craft a repository that executes arbitrary commands with the user's privileges when it is cloned and opened in Theia. With AI chat features and workspace settings that disable tool confirmation, sending a message in AI chat can trigger execution automatically.
Anyone running Eclipse Theia or the npm packages @theia/debug, @theia/task, or @theia/workspace before 1.69.0 should check their installations.