CVE-2024-7957 Details
Description
An arbitrary file overwrite vulnerability exists in the ZulipConnector of danswer-ai/danswer, affecting the latest version. The vulnerability arises from the load_credentials method, where user-controlled input for realm_name and zuliprc_content is used to construct file paths and write file contents. This allows attackers to overwrite or create arbitrary files if a zuliprc- directory already exists in the temporary directory.
An arbitrary file overwrite vulnerability has been identified in the ZulipConnector of the danswer-ai/danswer application, specifically in the latest version. This vulnerability arises in the load_credentials method, where user-controlled input for realm_name and zuliprc_content is used to create file paths and write file contents. As a result, attackers can overwrite or create arbitrary files if a zuliprc- directory already exists in the temporary directory.
The vulnerability can be mitigated by using a safer method for creating temporary files, such as tempfile.NamedTemporaryFile, which securely handles file creation and reduces the risk of arbitrary file overwrite or creation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 20, 2025CISA-ADP
Assessed Mar 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://huntr.com/bounties/21e9b909-036c-4544-ad35-6a5117836275 | [email protected] | ExploitTechnical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-29 | Path Traversal: '\..\filename' | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| danswer-ai/danswer | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 20, 2025 | New CVE Received | [email protected] |
Volerion