ZeroHour

CVE-2026-82217

niche

Path Traversal in Eclipse Theia AI Agent Mode Enables Out-of-Workspace Writes and RCE

CVSS 3.1
8.8 high
EPSS
<1%p31
Published
()
Modified
AI analysis

Eclipse Theia versions 1.73.0 through 1.74.x contain a path traversal flaw (CWE-22) in the AI Agent Mode file-change tools (writeFileContent, suggestFileContent, and the replacement and state helpers), which resolved model-supplied file paths without a workspace-containment check. An attacker who can steer the model's output, for example via indirect prompt injection in content the agent processes, can supply a relative path such as ../.bashrc, an absolute path, or a ~-expanded path; because Agent Mode applies writes without a confirmation dialog, files outside the workspace are written or deleted with the privileges of the Theia backend OS user. By writing to a host-executed file such as a shell startup file or ~/.ssh/authorized_keys, the attacker can escalate to arbitrary code execution on the backend host. Anyone running an affected Theia version with AI Agent Mode enabled is exposed, and the 8.8 CVSS score reflects network reachability with user interaction required. No public proof-of-concept, KEV listing, or confirmed in-the-wild exploitation is known; EPSS estimates only about a 0.4% probability of exploitation in the next 30 days.

What to do: Upgrade Eclipse Theia to 1.75.0 or later, which adds the missing workspace-containment check. Until upgraded, disable AI Agent Mode or restrict the Theia backend OS user so it cannot modify host-executed files such as shell startup files and ~/.ssh/authorized_keys, and audit affected hosts for unexpected writes to files like .bashrc or authorized_keys. Treat content the agent reads as untrusted, since indirect prompt injection can steer the path argument.

Affected
Eclipse Theia>= 1.73.0 and < 1.75.0 (AI Agent Mode file-change tools: writeFileContent, suggestFileContent, and the replacement and state helpers)
Estimated exposure
nichelikely well under 10,000 exposed instances (clearly an estimate; exact count unknown) — Eclipse Theia is deployed mainly in vendor-branded and self-hosted IDEs that represent a small share of the IDE market, and only deployments running 1.73-1.74 with the newly introduced AI Agent Mode enabled are affected.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In Eclipse Theia versions 1.73.0 up to but not including 1.75.0, the AI "Agent Mode" file-change tools (writeFileContent, suggestFileContent, and the replacement and state helpers) resolved a model-supplied file path without a workspace-containment check. A crafted relative path such as ../.bashrc, an absolute path, or a ~-expanded path could therefore write or delete files outside the workspace with the privileges of the Theia backend OS user. Because the path argument is influenced by model output, it can be steered through indirect prompt injection, and in Agent Mode writes are applied without a confirmation dialog. Writing to a host-executed file such as a shell startup file or ~/.ssh/authorized_keys can escalate to code execution on the backend.

Weakness
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.