Description
Devika v1.0 is vulnerable to Directory Traversal in the Coder.save_code_to_project function, which allows attackers to write files outside the intended project workspace.
Published: 2026-10-01
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Directory traversal enabling writes to arbitrary files outside the intended project workspace
Action: Patch or Mitigate
AI Analysis

Impact

The vulnerability resides in Devika v1.0, where the function Coder.save_code_to_project lacks proper validation of file paths. This omission allows an attacker who can invoke the function to specify a file path that escapes the intended project directory and is written elsewhere on the filesystem. The ability to create or overwrite files beyond the designated workspace can compromise the confidentiality, integrity, and availability of files outside the project sandbox.

Affected Systems

All installations of Devika version 1.0 are affected, as no specific subsets of functionality are limited. The product is identified only by the repository name; no vendor or additional product variants are listed in the CNA data.

Risk and Exploitability

Because the vulnerability permits write access outside a controlled directory, it can affect confidentiality, integrity, and availability of the host system. The CVSS score of 8.8 indicates high severity, while the EPSS score of <1% suggests that exploitation is unlikely but still possible. The vulnerability is not listed in the CISA KEV catalog, indicating that known exploits are not yet widely documented. The most likely attack vector is an attacker who can trigger the save function, which may be through local access or unauthenticated API endpoints if the application is exposed. Proper exploitation requires that the attacker can control the path parameter and that the affected system permits write operations outside the intended directory.

Generated by OpenCVE AI on October 7, 2026 at 08:13 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Acquire and install a version of Devika that removes the directory traversal flaw or applies an official patch if available
  • Modify the Coder.save_code_to_project routine to sanitise all file path inputs, rejecting paths that contain '..' or absolute references
  • Configure strict filesystem permissions so that the process running Devika cannot write outside the designated workspace directory

Generated by OpenCVE AI on October 7, 2026 at 08:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 07 Oct 2026 08:30:00 +0000

Type Values Removed Values Added
Title Directory Traversal in Devika's Code Save Function Allows Write Outside Project Workspace

Tue, 06 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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


Fri, 02 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
First Time appeared Stitionai
Stitionai devika
Vendors & Products Stitionai
Stitionai devika

Thu, 01 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
Title Directory Traversal in Devika's Code Save Function Allows Write Outside Project Workspace
Weaknesses CWE-22

Thu, 01 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
Description Devika v1.0 is vulnerable to Directory Traversal in the Coder.save_code_to_project function, which allows attackers to write files outside the intended project workspace.
References

Subscriptions

Stitionai Devika
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-06T15:25:02.961Z

Reserved: 2026-06-08T00:00:00.000Z

Link: CVE-2026-51873

cve-icon Vulnrichment

Updated: 2026-10-06T15:22:33.869Z

cve-icon NVD

Status : Deferred

Published: 2026-10-01T22:17:02.017

Modified: 2026-10-06T16:17:07.723

Link: CVE-2026-51873

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T08:15:14Z

Weaknesses
  • CWE-22

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