open-webui allows enumeration of file names and traversal of directories by observing the error messages
Date: 2024-10
Affected: pip/open-webui
Attack vector: info-disclosure
Category: vulnerability-disclosure
Severity: Low
CVE: CVE-2024-7038
CWE: CWE-200
CWE-209
CVSS: 2.7 (CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N)

An information disclosure vulnerability exists in open-webui version 0.3.8. The vulnerability is related to the embedding model update feature under admin settings. When a user updates the model path, the system checks if the file exists and provides different error messages based on the existence and configuration of the file. This behavior allows an attacker to enumerate file names and traverse directories by observing the error messages, leading to potential exposure of sensitive information.


Mitigations:

Architectural layers (MAESTRO):