CVE-2024-5548 Directory Traversal in stitionai/devika
Attackers can exploit a directory traversal flaw in the download-project endpoint to read arbitrary files from the server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-5548?
CVE-2024-5548 is a high-severity path traversal vulnerability in stitionai/devika, published on 27 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A directory traversal vulnerability exists in the stitionai/devika repository, specifically within the /api/download-project endpoint. Attackers can exploit this vulnerability by manipulating the 'project_name' parameter in a GET request to download arbitrary files from the system. This issue affects the latest version of the repository. The vulnerability arises due to insufficient input validation in the 'download_project' function, allowing attackers to traverse the directory structure and access files outside the intended directory. This could lead to unauthorized access to sensitive files on the server.
Weakness: CWE-22
Which versions are affected by CVE-2024-5548?
It affects 1 product.
Products include Stitionai Devika.
How do I fix CVE-2024-5548?
No fix has been published for CVE-2024-5548 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-5548 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5548 exists.
Other vulnerabilities in stitionai/devika
Sources
Also known as GHSA-73cq-4mxr-2h5h.