Skip to main content

Devika EUVDEUVD-2026-91131

| CVE-2026-51873 HIGH
Path Traversal (CWE-22)
2026-10-01 mitre GHSA-f262-872p-52hv
8.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Reach network-exposed Devika API
  2. Delivery
    Submit code-save request with ../ traversal path
  3. Exploit
    Bypass workspace path restriction in save_code_to_project
  4. Execution
    Write file to arbitrary host location
  5. Impact
    Overwrite 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.

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

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

Alert me

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

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

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

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

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.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

Lifecycle Timeline

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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 84% exploitable
Prevalence
Low
niche open-source AI coding agent, minimal production deployment
Data Quality
5 sources
Confidence: Medium

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.3%
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
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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.

More in Devika

View all
CVE-2024-40422 CRITICAL POC
9.1 Jul 24

The snapshot_path parameter in the /api/get-browser-snapshot endpoint in stitionai devika v1 is susceptible to a path tr

CVE-2024-5926 CRITICAL POC
9.1 Jun 30

A path traversal vulnerability in the get-project-files functionality of stitionai/devika allows attackers to read arbit

CVE-2024-5820 HIGH POC
8.8 Jun 27

An unprotected WebSocket connection in the latest version of stitionai/devika (commit ecee79f) allows a malicious websit

CVE-2024-5549 HIGH POC
8.1 Jul 09

A CORS misconfiguration in the stitionai/devika repository allows attackers to steal sensitive information such as logs,

CVE-2024-5712 HIGH POC
8.1 Jun 28

A Cross-Site Request Forgery (CSRF) vulnerability was identified in the stitionai/devika application, affecting the late

CVE-2024-5548 HIGH POC
7.5 Jun 27

A directory traversal vulnerability exists in the stitionai/devika repository, specifically within the /api/download-pro

CVE-2024-5547 HIGH POC
7.5 Jun 27

A directory traversal vulnerability exists in the /api/download-project-pdf endpoint of the stitionai/devika repository,

CVE-2024-5334 HIGH POC
7.5 Jun 27

A local file read vulnerability exists in the stitionai/devika repository, affecting the latest version. Rated high seve

CVE-2024-6331 MEDIUM POC
6.5 Aug 04

stitionai/devika main branch as of commit cdfb782b0e634b773b10963c8034dc9207ba1f9f is vulnerable to Local File Read (LFI

CVE-2024-5711 MEDIUM POC
6.1 Jul 08

A stored Cross-Site Scripting (XSS) vulnerability exists in the stitionai/devika chat feature, allowing attackers to inj

CVE-2026-51871 CRITICAL
9.8 Sep 30

Arbitrary code execution in Devika v1.0 allows unauthenticated remote attackers to run attacker-controlled code with the

CVE-2024-7790 MEDIUM POC
5.4 Aug 14

A stored cross site scripting vulnerabilities exists in DevikaAI from commit 6acce21fb08c3d1123ef05df6a33912bf0ee77c2 on

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