Skip to content
HighVulnerability

GHSA-9pgh-j74g-qj6m: Open WebUI Vulnerable to Arbitrary File Upload and Path Traversal

Published
Record updated
View JSON
Affected
  • open-webui <= 0.1.123
Fixed in
0.1.124
  • released May 20, 2024, 718 days before disclosure

Summary

Open WebUI version 0.1.105, running on Debian 12, fails to validate the filename of files uploaded through the HTTP interface to the /rag/api/v1/doc route. Attackers can use dot-segments in the filename to write files anywhere the web server's user has permission, as demonstrated by writing to /tmp/pwned.txt. The source notes this could let an attacker upload a malicious pickled model or an authorized_keys file for SSH access.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.