Skip to main content

Devika CVE-2026-51874

| EUVDEUVD-2026-91130 HIGH
Path Traversal (CWE-22)
2026-10-01 mitre GHSA-cpp9-ff82-c7vg
7.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach running Devika Patcher Agent
  2. Delivery
    Submit path with ../ traversal
  3. Exploit
    save_code_to_project writes outside workspace
  4. Execution
    Overwrite sensitive host file
  5. Impact
    Gain 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

Vendor (mitre) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

3
CVSS changed
Oct 05, 2026 - 19:22 NVD
7.5 (HIGH)
CVE Published
Oct 01, 2026 - 00:00 cve.org
HIGH 7.5
CVE Published
Oct 01, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.2%
Top 96% exploitable
Prevalence
Low
open-source experimental AI agent, hobby/research use, minimal production footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy