CVE-2024-5547 Directory Traversal in stitionai/devika
Attackers can exploit a directory traversal flaw in the PDF download endpoint to access arbitrary files, potentially exposing sensitive data.
- 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-5547?
CVE-2024-5547 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 /api/download-project-pdf endpoint of the stitionai/devika repository, affecting the latest version. The vulnerability arises due to insufficient sanitization of the 'project_name' parameter in the download_project_pdf function. Attackers can exploit this flaw by manipulating the 'project_name' parameter in a GET request to traverse the directory structure and download arbitrary PDF files from the system. This issue allows attackers to access sensitive information that could be stored in PDF format outside the intended directory.
Weakness: CWE-23
Which versions are affected by CVE-2024-5547?
It affects 1 product.
Products include Stitionai Devika.
How do I fix CVE-2024-5547?
No fix has been published for CVE-2024-5547 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-5547 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5547 exists.
Other vulnerabilities in stitionai/devika
Sources
Also known as GHSA-g447-v446-74c4.