CVE-2024-40422: The snapshot_path parameter in the /api/get-browser-snapshot endpoint in stitionai devika v1 is susceptible to
CVE-2024-40422 is a critical-severity flaw (CVSS 9.1) affecting devika. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
The snapshot_path parameter in the /api/get-browser-snapshot endpoint in stitionai devika v1 is susceptible to a path traversal attack. An attacker can manipulate the snapshot_path parameter to traverse directories and access sensitive files on the server. This can potentially lead to unauthorized access to critical system files and compromise the confidentiality and integrity of the system.
Why this priority
- Critical severity
- EPSS top 4%: very likely to be exploited
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.1 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 11.4% (top 4%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2024-07-24 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: j3r1ch0123/CVE-2024-40422 (1 stars)
- GitHub PoC: alpernae/CVE-2024-40422 (0 stars)
- Write-up: medium.com/@alpernae/uncovering-path-traversal-in-devika-v1-a-deep-dive-into-cve-2024-4042
- GitHub PoC: codeb0ss/CVE-2024-40422-PoC
- Exploit-DB: Devika v1 - Path Traversal via 'snapshot_path'
- Nuclei scan template: Devika v1 - Path Traversal
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-40422?
devika: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2024-40422 being exploited?
CVE-2024-40422 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-40422 affect?
CVE-2024-40422 affects devika. Severity is critical (CVSS 9.1). The snapshot_path parameter in the /api/get-browser-snapshot endpoint in stitionai devika v1 is susceptible to a path traversal attack. An attacker can manipulate the snapshot_path parameter to traverse directories and access sensitive file
How urgent is CVE-2024-40422?
Priority 69/100. Critical severity; EPSS top 4%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2024-7790 MEDIUM 6.5 DOWNGRADE A stored cross site scripting vulnerabilities exists in DevikaAI from commit 6acce21fb08c3d1123ef05df6a33912bf
- CVE-2024-6331 HIGH 7.5 DOWNGRADE stitionai/devika main branch as of commit cdfb782b0e634b773b10963c8034dc9207ba1f9f is vulnerable to Local File
- CVE-2024-5926 CRITICAL 9.1 MITIGATE A path traversal vulnerability in the get-project-files functionality of stitionai/devika allows attackers to
- CVE-2024-5820 HIGH 8.8 DOWNGRADE An unprotected WebSocket connection in the latest version of stitionai/devika (commit ecee79f) allows a malici
- CVE-2024-5712 HIGH 8.1 DOWNGRADE A Cross-Site Request Forgery (CSRF) vulnerability was identified in the stitionai/devika application, affectin