{"id":"CVE-2024-7037","summary":"Arbitrary File Write/Delete Leading to RCE in open-webui/open-webui","details":"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.","aliases":["GHSA-54f4-v6v9-9q82","PYSEC-2026-1721"],"modified":"2026-08-12T03:51:41.195794595Z","published":"2024-10-09T19:52:21.784Z","database_specific":{"cna_assigner":"@huntr_ai","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7037.json"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/8508db68-9c99-4b1c-828c-e1bfcacfb847"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7037.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7037"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/open-webui/open-webui","events":[{"introduced":"9bcd4ce5c0a01af68c0d2aa44554a68bb741c61b"},{"last_affected":"9bcd4ce5c0a01af68c0d2aa44554a68bb741c61b"}],"database_specific":{"extracted_events":[{"introduced":"0.3.8"},{"last_affected":"0.3.8"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:openwebui:open_webui:0.3.8:*:*:*:*:*:*:*"}}],"versions":["0.3.8","v0.3.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-7037.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H"}]}