Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach network-exposed Devika API
-
DeliverySubmit code-save request with ../ traversal path
-
ExploitBypass workspace path restriction in save_code_to_project
-
ExecutionWrite file to arbitrary host location
-
ImpactOverwrite startup/cron file for code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the ability to reach and drive Devika's code-generation workflow so that attacker-influenced input flows into the Coder.save_code_to_project file path. Devika v1.0 ships without authentication by default, so a network-reachable instance is directly exposed; the practical limiting factor is that Devika is commonly run bound to localhost for a single developer, which removes remote reachability. No non-default feature toggle is needed - the save-to-project functionality is core agent behavior - but the attacker must be able to supply or steer a filename/project path containing traversal sequences (e.g. ../). Realistic risk is therefore gated primarily by whether the instance is network-exposed rather than by any special configuration. |
| Impact | Signals conflict in a way that pulls this below its headline score. The CVSS base score is 8.8 (High) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, implying an easy, high-impact network attack - a directory-traversal file-write primitive that typically escalates to remote code execution via overwriting startup scripts or credentials. However, EPSS is only 0.26% (16th percentile), it is NOT on the CISA KEV list, and there is no confirmed active exploitation, so widespread opportunistic attack is currently unlikely. A referenced gist (Ro1ME) and the upstream GitHub issue #707 suggest public technical detail / likely PoC exists, which raises the practical exploitability even as EPSS stays low. The decisive mitigating factor is deployment footprint: Devika is a niche open-source agentic-AI coding tool, not enterprise infrastructure, so the real-world exposed surface is small. Note a tension in the metadata: the vector states PR:L, but Devika ships with no authentication by default, so any network-exposed instance could be exploited unauthenticated (PR:N), which would push severity higher - verify whether the target instance is exposed and whether auth is in front of it. Also, the CPE and affected-version fields are placeholders ('n/a'), so the vulnerable scope is defined only by the description ('Devika v1.0'). Bottom line: genuinely dangerous (file write → RCE) for anyone exposing Devika on a network, but low aggregate risk for most organizations because the product is rarely deployed in production. |
| Exploit ScenarioDerived | An attacker reaches a network-exposed Devika instance (which ships without authentication by default) and drives its code-generation agent to save a file whose target path contains directory-traversal sequences, causing Coder.save_code_to_project to write outside the intended project workspace. By overwriting a sensitive file such as a startup script, cron entry, or SSH authorized_keys, the attacker converts the arbitrary file write into code execution on the host. A public gist referenced in the advisory appears to document the technique, indicating exploit detail is available even though active exploitation is not confirmed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 06, 2026
Arbitrary file write through directory traversal in Devika v1.0's Coder.save_code_to_project function lets an attacker who can steer the agent's generated filename or project path - using sequences such as '../' - save files outside the intended project workspace. The assessed vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8) requires low-privilege access per PR:L, but Devika v1.0 ships without authentication by default, so any instance reachable over the network is effectively exposed; the real limiting factor is deployment posture, since Devika is commonly bound to localhost for a single developer, which eliminates remote reachability. Exploitation is not confirmed active: there is no CISA KEV entry, no public exploit code identified at time of analysis, and EPSS is only 0.26% (16th percentile), so the composite signal set sits noticeably below the 8.8 headline score.
RemediationAI
No vendor-released patch was identified in the available intelligence at time of analysis, so this must be managed with compensating controls until the maintainers publish a fixed release. The single most effective measure is to keep Devika bound to 127.0.0.1 and never expose its UI/API to untrusted networks, which removes the network attack path entirely - the trade-off is loss of remote or multi-user access. Where remote access is genuinely required, front the service with an authenticating reverse proxy (Devika v1.0 has no built-in authentication), accepting that this adds only a credential gate and does nothing to fix the traversal logic itself. Operationally, run Devika inside a container or sandbox with the project workspace as the only writable mount and a read-only root filesystem, so that a traversal escape lands on an ephemeral, non-sensitive path; this bounds the blast radius but may break agent features that legitimately expect broader write access. Finally, restrict the OS user running Devika to least privilege, and track the upstream issue https://github.com/stitionai/devika/issues/707 and the CVE record https://nvd.nist.gov/vuln/detail/CVE-2026-51873 (EUVD-2026-91131) for a release that canonicalizes and confines the save path before writing.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a classic CWE-22 improper limitation of a pathname to a restricted directory, occurring in the Python-based Devika agentic software-development assistant. Devika uses an LLM-driven agent loop (including a Coder component) that generates source code and persists it to a project directory via Coder.save_code_to_project; the flaw is that the destination path derived from attacker-influenceable input (a generated filename or project identifier) is not canonicalized or confined to the project root before the write. Because the sink is a file-write primitive with integrity and confidentiality impact (I:H/C:H), traversal sequences allow overwriting or planting arbitrary files wherever the Devika process has write permission - including configuration, startup artifacts, or other users' project trees - which can in turn enable code execution through file-write-to-RCE chains. CPE data supplied with the record is unresolved (cpe:2.3:a:n/a:n/a, and EUVD lists the affected version as 'n/a n/a'), so no authoritative CPE binding is available; the description and advisory references nonetheless pin the affected artifact to Devika v1.0, tracked under EUVD-2026-91131 and tagged Path Traversal.
Know when Devika gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable agent with no special config (AV:N/AC:L); PR:L reflects interacting with the agent workflow, and arbitrary file write escalating to RCE justifies C/I/A:H.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
Devika v1.0, an open-source AI software-engineering agent in use by our developers, carries a high-severity arbitrary file write flaw that could allow a user of the tool to place files anywhere on the host it runs on, including locations that could lead to code execution or tampering with source code and credentials. Because Devika v1.0 ships without authentication and no vendor patch is available, any instance reachable from the network is effectively open to misuse, whereas instances confined to a single local developer machine carry materially lower exposure. Leadership should treat this as a posture-dependent risk that warrants immediate discovery and containment of network-exposed instances rather than emergency patching, since no fix currently exists.
No vendor-released patch identified at time of analysis. Interim mitigations: bind Devika v1.0 strictly to localhost and block inbound network access via host firewall; run it inside a container or VM with a read-only root filesystem and only a single restricted writable project mount; execute under a dedicated low-privilege service account; monitor and alert on file writes outside the intended project workspace; and treat any network-reachable instance as effectively unauthenticated, isolating or retiring it until a vendor patch is released.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
The snapshot_path parameter in the /api/get-browser-snapshot endpoint in stitionai devika v1 is susceptible to a path tr
A path traversal vulnerability in the get-project-files functionality of stitionai/devika allows attackers to read arbit
An unprotected WebSocket connection in the latest version of stitionai/devika (commit ecee79f) allows a malicious websit
A CORS misconfiguration in the stitionai/devika repository allows attackers to steal sensitive information such as logs,
A Cross-Site Request Forgery (CSRF) vulnerability was identified in the stitionai/devika application, affecting the late
A directory traversal vulnerability exists in the stitionai/devika repository, specifically within the /api/download-pro
A directory traversal vulnerability exists in the /api/download-project-pdf endpoint of the stitionai/devika repository,
A local file read vulnerability exists in the stitionai/devika repository, affecting the latest version. Rated high seve
stitionai/devika main branch as of commit cdfb782b0e634b773b10963c8034dc9207ba1f9f is vulnerable to Local File Read (LFI
A stored Cross-Site Scripting (XSS) vulnerability exists in the stitionai/devika chat feature, allowing attackers to inj
Arbitrary code execution in Devika v1.0 allows unauthenticated remote attackers to run attacker-controlled code with the
A stored cross site scripting vulnerabilities exists in DevikaAI from commit 6acce21fb08c3d1123ef05df6a33912bf0ee77c2 on
EUVD-2026-91131
GHSA-f262-872p-52hv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB