CVE-2026-74764
KrytyczneCVSS 10.0Streszczenie
Pandora zawiera podatność na przechodzenie po ścieżkach w funkcji ekstrakcji archiwów TAR. Podczas przetwarzania archiwum TAR nazwy członków archiwum są przekazywane bezpośrednio do funkcji tarfile.TarFile.extract() bez filtra ekstrakcji. Atakujący może przesłać specjalnie spreparowane archiwum TAR ze złośliwymi ścieżkami, co pozwala na zapis plików poza zamierzonym katalogiem.
Ocena ryzyka
Atakujący może nadpisać pliki dostępne dla procesu Pandora, co może prowadzić do przejęcia aplikacji, wykonania dowolnego kodu lub odmowy usługi, w zależności od uprawnień procesu.
Rekomendacja
Zastosuj poprawkę, która używa filtra ekstrakcji 'data' w Pythonie, aby odrzucać lub sanityzować niebezpieczne elementy archiwum TAR, w tym ścieżki wychodzące poza katalog docelowy.
Oryginalny opis (angielski, źródło NVD)
Pandora contains a path traversal vulnerability in its TAR archive extraction functionality. When processing a submitted TAR archive, the extractor passed archive member names directly to Python's tarfile.TarFile.extract() without applying an extraction filter. An attacker able to submit a specially crafted TAR archive containing malicious member paths, such as paths using ../ sequences or absolute paths, could cause extracted files to be written outside the intended extraction directory. This may allow the attacker to overwrite files accessible to the Pandora worker process and could potentially result in application compromise, arbitrary code execution, or denial of service depending on the files targeted and the privileges of the Pandora process. The vulnerability is corrected by using Python's filter='data' extraction filter, which rejects or sanitizes dangerous TAR members, including paths that escape the destination directory and unsafe link targets. The weakness corresponds to MITRE's general path traversal category, which includes archive extraction cases where attacker-controlled filenames cause files to be written outside the intended directory.

