Description
Missing path validation in the Worktree.remove component of openCode v1.18.26 allows attackers to execute arbitrary recursive directory deletion via a crafted payload.
Published: 2026-09-22
Score: n/a
EPSS: n/a
KEV: No
Impact: Arbitrary Recursive Directory Deletion
Action: Apply Patch
AI Analysis

Impact

A missing path validation check in the Worktree.remove component of openCode v1.18.26 allows an attacker to craft a payload that specifies any directory path. The component will then perform a recursive delete of that path, resulting in loss of files and directories. This flaw can lead to significant data loss and service disruption, as critical files may be removed without permission. The weakness is a failure of input validation that permits destructive action on the filesystem.

Affected Systems

The affected product is openCode, specifically version 1.18.26. No additional vendor or product information is supplied by the CVE data.

Risk and Exploitability

The vulnerability can be exploited by sending a crafted request to the Worktree.remove endpoint, either locally or remotely, if the application is exposed. Because the flaw does not require additional privileges beyond those granted to the victim user, the reach is potentially wide. No CVSS or EPSS scores are available, so the risk is inferred to be high due to the destructive nature of the ability to delete arbitrary directories. The issue is not listed in the CISA KEV catalog. The likelihood of exploitation depends on the exposure of the affected component and the overall security posture of the environment.

Generated by OpenCVE AI on September 22, 2026 at 20:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a later version of openCode that includes path validation in Worktree.remove
  • If an upgrade is not immediately possible, enforce strict filesystem permissions so that the process running Worktree.remove cannot delete or modify directories outside the intended area
  • Monitor filesystem activity for unexpected deletions and generate alerts to detect exploitation

Generated by OpenCVE AI on September 22, 2026 at 20:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 22 Sep 2026 21:15:00 +0000

Type Values Removed Values Added
Title Recursive Directory Deletion via Missing Path Validation in openCode Worktree.remove
Weaknesses CWE-20

Tue, 22 Sep 2026 19:45:00 +0000

Type Values Removed Values Added
Description Missing path validation in the Worktree.remove component of openCode v1.18.26 allows attackers to execute arbitrary recursive directory deletion via a crafted payload.
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-22T19:31:44.098Z

Reserved: 2026-09-10T00:00:00.000Z

Link: CVE-2026-88624

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-22T20:17:11.260

Modified: 2026-09-22T20:17:11.260

Link: CVE-2026-88624

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T21:00:16Z

Weaknesses
  • CWE-20

    Improper Input Validation