CVE-2024-10831: Arbitrary File Write through Absolute Path Traversal in eosphoros-ai/db-gpt
In eosphoros-ai/db-gpt version 0.6.0, the endpoint for uploading files is vulnerable to absolute path traversal. This vulnerability allows an attacker to upload arbitrary files to arbitrary locations on the target server. The issue arises because the filekey and docfile.filename parameters are user-controllable, enabling the construction of paths outside the intended directory. This can lead to overwriting essential system files, such as SSH keys, for further exploitation.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-10831?
CVE-2024-10831 is classified as a high severity vulnerability due to its potential for unauthorized file uploads.
How do I fix CVE-2024-10831?
To mitigate CVE-2024-10831, you should update to version 0.6.1 or later of eosphoros-ai/db-gpt, which addresses the path traversal issue.
What types of attacks can CVE-2024-10831 facilitate?
CVE-2024-10831 can facilitate attacks that allow an attacker to upload arbitrary files to arbitrary locations on the server.
Which versions of eosphoros-ai/db-gpt are affected by CVE-2024-10831?
CVE-2024-10831 affects all versions of eosphoros-ai/db-gpt up to and including version 0.6.0.
Is CVE-2024-10831 related to file upload vulnerabilities?
Yes, CVE-2024-10831 is specifically a file upload vulnerability that involves absolute path traversal.