CVE-2024-7957

Arbitrary File Overwrite in danswer-ai/danswer

State
Published
Severity
9.1 Critical
Published
Mar 20, 2025
Updated
Mar 20, 2025
Reserved
Aug 19, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.09.1 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H@huntr_ai

Weaknesses

  • CWE-29 Path Traversal: '\..\filename'

Affected Products

ProductVersions
danswer-ai/danswerdanswer-ai
  • latest and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.