MEDIUM 6.5 PyPI

open-webui allows writing and deleting arbitrary files

GHSA-54f4-v6v9-9q82 · CVE-2024-7037

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

In version v0.3.8 of open-webui/open-webui, the endpoint /api/pipelines/upload is vulnerable to arbitrary file write and delete due to unsanitized file.filename concatenation with CACHE_DIR. This vulnerability allows attackers to overwrite and delete system files, potentially leading to remote code execution.

Ready to move

Start Securing

Free, no credit card | First findings in minutes