Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · net nu 150 bronnen 2 kritiek 9 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-7819

HIGH · 8.1 CVSS Gepubliceerd: CWE-61

Beschrijving NL

Symbolic-link path traversal (CWE-61, CWE-22) in pgAdmin 4 File Manager. check_access_permission heeft os.path.abspath gebruikt, dat '..' oplost maar symbolische links niet oplost, terwijl de volgende kernel write symlinks volgt. Een geverifieerde gebruiker kan een symbolische link in zijn eigen opslagdirectory plaatsen die naar buiten wijst en pgAdmin ertoe aanzetten om naar elk pad te schrijven dat bereikbaar is via het pgAdmin-proces. Fix schakelt de toegangscontrole om naar os.path.realpath voor zowel bron als bestemming, en voegt een _open_upload_target helper toe die het doel opent met O_NOFOLLOW (modus 0o600) om de bladcomponent TOCTOU tussen de toegangscontrole en de open te sluiten. De bestandsmodus is gehard van 0o644 tot 0o600. Dit probleem heeft invloed op pgAdmin 4: vóór 9.15 uur.

Origineel (Engels) tonen

Symbolic-link path traversal (CWE-61, CWE-22) in pgAdmin 4 File Manager.

check_access_permission used os.path.abspath, which resolves '..' but does not resolve symbolic links, while the subsequent kernel write follows symlinks. An authenticated user could plant a symbolic link inside their own storage directory pointing outside it and induce pgAdmin to write to any path reachable by the pgAdmin process.

Fix switches the access check to os.path.realpath for both source and destination, and adds an _open_upload_target helper that opens the target with O_NOFOLLOW (mode 0o600) to close the leaf-component TOCTOU between the access check and the open. File mode is hardened from 0o644 to 0o600.

This issue affects pgAdmin 4: before 9.15.

Vendors

Pgadmin

Affected products

Pgadmin 4

References