Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach running Devika Patcher Agent
-
DeliverySubmit path with ../ traversal
-
Exploitsave_code_to_project writes outside workspace
-
ExecutionOverwrite sensitive host file
-
ImpactGain code execution or persistence
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 | Requires a running Devika instance whose Patcher Agent (save_code_to_project) is invoked on attacker-influenceable input - i.e. the attacker must be able to submit or steer a coding task so that attacker-controlled file paths containing ../ traversal sequences are passed to the save routine. Exploitation is bounded by deployment reality rather than by authentication: Devika is typically self-hosted by a single developer and often not exposed to untrusted networks, so the practical attack surface depends on whether the instance is network-reachable and whether its agent processes externally-supplied tasks or repository content. The CVSS vector asserts no authentication (PR:N) and no user interaction, but this holds only for instances deployed without access controls in front of the agent interface. |
| Impact | Signals are mixed and skew toward lower real-world urgency than the 7.5 base score suggests. The NVD CVSS vector (AV:N/AC:L/PR:N/UI:N) describes a network-reachable, unauthenticated, low-complexity write primitive, and SSVC rates it Automatable:yes with partial technical impact - on paper an attractive target. Against that, EPSS is only 0.15% (4th percentile), there is no CISA KEV listing, and exploitation status is limited to a publicly available proof-of-concept (SSVC Exploitation:poc, corroborated by the referenced gist). The AV:N/PR:N rating should be treated cautiously: Devika is a self-hosted agentic AI developer tool normally run locally by an individual, so 'network, unauthenticated' exploitation presupposes an exposed instance whose Patcher Agent an attacker can feed crafted input to - a condition the terse description does not confirm. CWE-22 with C:N/I:H/A:N is internally consistent (arbitrary file write = integrity loss, no direct disclosure). Net: a legitimate high-severity integrity flaw, but currently a patch-in-normal-cycle issue rather than an emergency - low EPSS, no active-exploitation evidence, and a niche/experimental deployment base all argue against widespread opportunistic attacks. Verify network exposure and auth posture against your actual Devika deployment before rating it network-remote. |
| Exploit ScenarioDerived | An attacker who can submit tasks to or otherwise influence the output of a running Devika instance's Patcher Agent supplies a file path containing traversal sequences (e.g. ../../), causing save_code_to_project to write attacker-controlled content outside the intended project workspace - for example overwriting a startup script, SSH key, or configuration file to achieve code execution or privilege escalation on the host. A public proof-of-concept exists (referenced gist and GitHub issue #709), lowering the barrier to reproduction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 05, 2026
Path traversal in Devika v1.0's Patcher Agent allows remote attackers to write files outside the intended project workspace by supplying paths containing ../ traversal sequences to the save_code_to_project routine. The CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N (7.5), indicating high integrity impact with no confidentiality or availability effect, and publicly available exploit code exists (SSVC Exploitation: poc) - but there is no CISA KEV entry confirming active exploitation. EPSS is very low at 0.15% (4th percentile), and real-world urgency is bounded by deployment reality: Devika is typically self-hosted by an individual developer, so the practical risk depends on whether the instance is network-reachable and whether its agent actually processes attacker-influenceable tasks or repository content.
RemediationAI
No vendor-released patch identified at time of analysis - the available references are the upstream GitHub issue (https://github.com/stitionai/devika/issues/709) and a public PoC gist (https://gist.github.com/Ro1ME/eb9e0cd66ee3c682a624650464d07302), not a tagged fix release, so teams running Devika should track issue 709 for an upstream commit and, if one lands, treat it as PR-level confidence until a versioned release is published. Until then, contain the impact rather than relying on the flaw being fixed: run Devika as a dedicated low-privilege user inside a container with the project directory as the only writable mount (all other paths read-only), which means a traversal write lands in a sandbox and is discarded on rebuild; do not expose the agent interface or its web UI to untrusted networks, since the PR:N vector assumes an instance with no access control in front of the agent and adding an authenticating reverse proxy breaks that assumption for external attackers (though anyone with task-submission rights remains able to trigger it); avoid feeding the Patcher Agent untrusted repositories, issue text, or third-party task prompts, as traversal strings must be introduced through attacker-influenceable input; and monitor for anomalous file creation outside the workspace with filesystem auditing or integrity monitoring, accepting that this is detection rather than prevention. Patching the path construction itself - canonicalize the resolved path (realpath) and reject any result not prefixed by the workspace root, disallowing absolute paths and ../ segments - is the durable fix and can be applied as a local source patch, with the caveat that it diverges from upstream until an official release includes it.
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
Devika (stitionai/devika) is an open-source agentic coding assistant that decomposes an objective into tasks and dispatches them to specialized agents, including a Patcher Agent that writes generated code back into a project directory. Its save_code_to_project function fails to canonicalize or confine the destination path, so a filename or path component containing ../ traversal sequences is resolved outside the workspace root. This is classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory): the application trusts a user-influenced path string and joins it to a base directory without resolving symlinks, normalizing the path, or verifying that the result remains under the intended root. The resulting impact is write-only - an attacker who can steer the task input can create or overwrite files anywhere the Devika process has write permission, including sibling directories, the agent's own configuration, or other files owned by the service account. The integrity-only CVSS profile (C:N/I:H/A:N) is consistent with this: the flaw grants content destruction or planting, not file read access or denial of service. The CPE supplied with this record is unpopulated (cpe:2.3:a:n/a:n/a), so component-level scoping relies on the reported v1.0 release and the ENISA EUVD entry (EUVD-2026-91130); SSVC flags the issue as Automatable: yes with Technical Impact: partial.
Know when the next one hits your stack
- 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:N/UI:N/S:U/C:N/I:H/A:N
Arbitrary file write outside the workspace via unauthenticated agent input gives I:H with C:N/A:N; AV:N/PR:N assume a network-exposed Devika instance without access controls.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
In Devika v1.0, the Patcher Agent save_code_to_project function contains a path traversal vulnerability that allows attackers to write files outside the intended project workspace.
Executive ViewAI
A high-severity path traversal flaw in Devika v1.0's Patcher Agent lets an unauthenticated remote attacker write files outside the intended project workspace on any network-reachable instance. Because the defect carries only integrity impact, the organizational exposure is to code and configuration tampering rather than data theft or service outage, and it is concentrated among teams or individual developers running self-hosted Devika installations that accept attacker-influenceable tasks or repository content. Leadership should treat this as a bounded, deployment-dependent risk requiring inventory and containment rather than an enterprise-wide emergency.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict network reachability (VPN, allowlist, or authentication proxy), isolate the Patcher Agent in a container or sandbox with read-only mounts and a least-privilege account confined to the project directory, avoid processing untrusted or externally supplied tasks and repository content, and monitor for unauthorized file writes outside the intended workspace. Vulnerability status for CVE-2026-51874: publicly available exploit code exists; no public exploit identified at time of analysis as confirmed actively exploited (CISA KEV) - CISA KEV listing is absent; authentication: unauthenticated (CVSS vector PR:N).
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.
EUVD-2026-91130
GHSA-cpp9-ff82-c7vg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB