GHSA-54f4-v6v9-9q82

Suggest an improvement
Source
https://github.com/advisories/GHSA-54f4-v6v9-9q82
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-54f4-v6v9-9q82/GHSA-54f4-v6v9-9q82.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-54f4-v6v9-9q82
Aliases
Published
2024-10-09T21:31:08Z
Modified
2024-10-09T22:27:14.037349Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
  • 5.5 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
open-webui allows writing and deleting arbitrary files
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.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "MODERATE",
    "nvd_published_at": "2024-10-09T20:15:09Z",
    "github_reviewed_at": "2024-10-09T22:09:16Z",
    "github_reviewed": true
}
References

Affected packages

PyPI / open-webui

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.3.8

Affected versions

0.*

0.1.124
0.1.125
0.2.0.dev1
0.2.0.dev2
0.2.0.dev3
0.2.0.dev4
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.3.6
0.3.7
0.3.8