Technical impact
The vulnerability arises from a mismatch between the path validated by check_access_permission() and the path used by several file‑manager operations in server mode of pgAdmin 4. Because the validated path is not the same as the one actually acted upon, an attacker can supply a crafted path that resolves to files or directories outside the intended user storage area. The flaw permits reading, writing, deleting, or renaming arbitrary files that the pgAdmin service has permission to access, as well as enumerating arbitrary directories when special encoded paths are used. This leads to confidentiality and integrity violations and could serve as a foothold for further compromise.
Affected Systems
pgAdmin 4 from pgadmin.org, versions prior to 9.19. The bug is fixed in version 9.19 and later. Desktop mode is not affected, and the issue only exists in server mode configurations.
Risk and Exploitability
The CVSS score of 7.1 classifies the risk as high. No EPSS score is available and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector involves a legitimate authenticated user accessing the web interface of a deployed pgAdmin 4 server and invoking the file‑manager, import/export, backup/restore, or Query Tool functions that rely on the flawed path handling. Successful exploitation would allow the attacker to read or modify sensitive host files, delete or rename other users’ data, or list arbitrary directories, thereby compromising confidentiality, integrity, and availability on the host system.