Files
open-webui/backend/open_webui
Classic298andClaude Opus 4.7 b0fa4384ea fix: cache path traversal via sibling-prefix bypass in serve_cache_file (#25086)
serve_cache_file gated the resolved path with file_path.startswith(os.path.abspath(CACHE_DIR)) without a trailing os.sep, so any path resolving to a sibling whose name starts with the cache-dir basename (e.g. cache_backup, cached_models) passed the prefix check. Authenticated users could read files from such siblings via /cache/../<sibling>/<file>. Appending os.sep to the prefix closes the bypass; deep traversal and absolute paths were already correctly blocked.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 10:17:02 -07:00
..
2026-05-21 16:25:25 +04:00
2026-05-21 15:29:49 +04:00
2026-06-01 09:53:04 -07:00
2026-05-31 14:48:51 -07:00
2026-05-12 03:04:35 +09:00
2026-06-01 10:13:50 -07:00
2026-06-01 10:16:01 -07:00
2026-05-09 02:38:08 +09:00
2026-05-31 15:10:48 -07:00