CVE-2026-82217

Directory Traversal Allows Unauthorized File Write in Eclipse Theia's Agent Mode

Published Aug 31, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw lies in Eclipse Theia’s AI "Agent Mode" file‑change tools, which incorrectly resolve a path supplied by the model without ensuring that it stays within the workspace. By providing a crafted relative path such as ../.bashrc, an absolute path, or a tilde‑expanded location, an attacker can cause the backend to write or delete files outside the intended area. The affected file‑change operations are executed with the Theia backend OS user’s privileges and are applied without a confirmation step, so an attacker who can influence the model’s output—via indirect prompt injection—can overwrite critical host files such as shell startup scripts or ~/.ssh/authorized_keys, enabling code execution on the backend.

Affected Systems

Eclipse Foundation Eclipse Theia versions 1.73.0 through 1.74.x (up to, but not including, 1.75.0) are vulnerable. Any deployment running one of these releases is at risk.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity tier, and while EPSS data is not available, the capability to write or delete privileged files strongly suggests a high likelihood of exploitation. The lack of a workspace containment check permits directory traversal (CWE‑22). The primary attack vector is likely remote interaction with the Theia backend via the chatbot or other AI interfaces, with indirect prompt injection steering the model to produce the malicious path. Because the vulnerability is not listed in CISA’s KEV catalog, it may already be in active development or at risk of emerging exploitation once the feature is broadly used.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Eclipse Theia to version 1.75.0 or newer where the containment check is fixed
  • Restrict the permissions of the Theia backend operating system user to prevent writes to critical system files
  • If an upgrade is not possible, disable or limit the Agent Mode file‑change features until a patch is applied

Generated by OpenCVE AI on August 31, 2026 at 15:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Directory Traversal Allows Unauthorized File Write in Eclipse Theia's Agent Mode
Type Values Removed Values Added
First Time appeared Eclipse
Eclipse eclipse Theia
Vendors & Products Eclipse
Eclipse eclipse Theia
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
eclipse
Published
Updated
Sep 1, 2026, 3:56 AM
Reserved
Aug 28, 2026, 8:47 AM
Status
Deferred
Published
Aug 31, 2026, 2:17 PM
Modified
Sep 1, 2026, 9:11 PM