CVE-2024-5334
published 2024-06-27CVE-2024-5334: A local file read vulnerability exists in the stitionai/devika repository, affecting the latest version. The vulnerability is due to improper handling of the…
PriorityP277high7.5CVSS 3.0
AVNACLPRNUINSUCHINAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
2.07%
79.1th percentile
A local file read vulnerability exists in the stitionai/devika repository, affecting the latest version. The vulnerability is due to improper handling of the 'snapshot_path' parameter in the '/api/get-browser-snapshot' endpoint. An attacker can exploit this vulnerability by crafting a request with a malicious 'snapshot_path' parameter, leading to arbitrary file read from the system. This issue impacts the security of the application by allowing unauthorized access to sensitive files on the server.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| stitionai | devika | — | — |
| stitionai | stitionai_devika | >= unspecified < - | - |
Detection & IOCsextracted from sources · hover to see the quote
- →Monitor HTTP GET requests to '/api/get-browser-snapshot' with a 'snapshot_path' parameter containing path traversal sequences or absolute paths (e.g., /etc/passwd). Responses with Content-Disposition header 'attachment; filename=passwd' and Content-Type 'application/octet-stream' indicate successful exploitation. ↗
- →Use Shodan/FOFA queries to identify exposed Devika AI instances: shodan-query 'title:"Devika AI"' and fofa-query 'title="Devika AI"'. ↗
- →Successful exploitation returns HTTP 200 with a response body matching 'root:.*:0:0:' (Unix /etc/passwd content) and response headers containing 'attachment; filename=passwd' and 'application/octet-stream'. ↗
- ·The vulnerability affects the latest version of the stitionai/devika repository at the time of disclosure. A patch was committed; verify whether the target instance has applied commit 6acce21fb08c3d1123ef05df6a33912bf0ee77c2. ↗
- ·The endpoint is unauthenticated and network-accessible (CVSS AV:N/AC:L/PR:N/UI:N), meaning no credentials are required to exploit it remotely. ↗
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vulncheck7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-p7qc-844f-652r: External Control of File Name or Path in GitHub repository stitionai/devika prior to -
ghsa_unreviewed·2024-06-27
CVE-2024-5334 [HIGH] CWE-73 GHSA-p7qc-844f-652r: External Control of File Name or Path in GitHub repository stitionai/devika prior to -
External Control of File Name or Path in GitHub repository stitionai/devika prior to -.
VulnCheck
stitionai devika External Control of File Name or Path
vulncheck·2024·CVSS 7.5
CVE-2024-5334 [HIGH] stitionai devika External Control of File Name or Path
stitionai devika External Control of File Name or Path
A local file read vulnerability exists in the stitionai/devika repository, affecting the latest version. The vulnerability is due to improper handling of the 'snapshot_path' parameter in the '/api/get-browser-snapshot' endpoint. An attacker can exploit this vulnerability by crafting a request with a malicious 'snapshot_path' parameter, leading to arbitrary file read from the system. This issue impacts the security of the application by allowing unauthorized access to sensitive files on the server.
Affected: stitionai devika
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https://app.crowdsec.net/cti/c
No detection rules found.
Nuclei
Devika - Local File Inclusion
nuclei·CVSS 7.5
CVE-2024-5334 [HIGH] Devika - Local File Inclusion
Devika - Local File Inclusion
A local file read vulnerability exists in the stitionai/devika repository, affecting the latest version. The vulnerability is due to improper handling of the 'snapshot_path' parameter in the '/api/get-browser-snapshot' endpoint. An attacker can exploit this vulnerability by crafting a request with a malicious 'snapshot_path' parameter, leading to arbitrary file read from the system. This issue impacts the security of the application by allowing unauthorized access to sensitive files on the server.
Template:
id: CVE-2024-5334
info:
name: Devika - Local File Inclusion
author: nechyo,nukunga,harksu,olfloralo,gy741
severity: high
description: |
A local file read vulnerability exists in the stitionai/devika repository, affecting the latest version. The vulnerab
No writeups or analysis indexed.
2024-06-27
Published
Exploited in the wild