CVE-2026-81028
ŚrednieCVSS 4.9Prawdopodobieństwo exploitacji (EPSS)
Niskie ryzykoPercentyl 28 - wyżej niż 28% wszystkich znanych CVE
Streszczenie
ZLMediaKit ogranicza API downloadFile do skonfigurowanych katalogów głównych, ale porównanie prefiksów nie uwzględnia granic katalogów. Żądana ścieżka jest akceptowana, jeśli zaczyna się od skonfigurowanego katalogu, co pozwala na odczyt plików z katalogów o podobnych nazwach. Wymagany jest sekret API, ale serwer w kontenerze działa jako root.
Ocena ryzyka
Osoba posiadająca sekret API może czytać pliki poza zamierzonym katalogiem, co może prowadzić do wycieku danych systemowych, zwłaszcza gdy serwer działa z uprawnieniami root.
Rekomendacja
Zaktualizuj ZLMediaKit do wersji, która zawiera poprawkę uwzględniającą separatory katalogów w porównaniu ścieżek, oraz rozważ zmianę uprawnień kontenera.
Inne podatności w ZLMediaKit
Oryginalny opis (angielski, źródło NVD)
ZLMediaKit confines the downloadFile API to a configured set of root directories with a prefix comparison that does not account for directory boundaries. The configuration loader in server/WebApi.cpp builds each root with File::absolutePath("", item, true); because the relative-path argument is empty that helper returns the value without a trailing separator. The handler then accepts a requested path when start_with(file_path, root) holds, so a sibling directory whose name merely begins with the configured root string satisfies the test and is served. The only other guard rejects a path containing two dots, which this requires none of. The equivalent confinement check for the ordinary static file server in src/Http/HttpFileManager.cpp computes its root with a non-empty second argument, which appends the separator before comparing, and so is not affected. The endpoint requires the configured API secret, so this grants no privilege beyond what that secret already implies, but it reads files outside the directory the operator confined it to, and the reference container runs the server as root.

