CVE-2026-7819: pgAdmin 4: Symbolic-link path traversal in File Manager allows arbitrary file write
Symbolic-link path traversal (CWE-61, CWE-22) in pgAdmin 4 File Manager.
checkaccesspermission 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 openuploadtarget helper that opens the target with ONOFOLLOW (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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pgAdmin 4 File Managerto a version that resolves this vulnerability.Fixed in 9.15 - Configuration
In File Manager, use an _open_upload_target helper to open the upload target with O_NOFOLLOW and create it with mode 0o600 to prevent following symlinks between the access check and the open.
pgAdmin 4 File Manager open_upload_target symlink handling = O_NOFOLLOW (mode 0o600) - Configuration
Update check_access_permission to use os.path.realpath for both the source and destination (replacing os.path.abspath, which resolves '..' but not symlinks) so symlink traversal outside the allowed directory is rejected.
pgAdmin 4 File Manager check_access_permission path resolution = os.path.realpath for both source and destination - Configuration
Ensure the upload/write file mode is hardened from 0o644 to 0o600 so created/modified files are not world-readable.
pgAdmin 4 File Manager file mode = 0o600
Event History
Frequently Asked Questions
What is the severity of CVE-2026-7819?
The severity of CVE-2026-7819 is high with a CVSS score of 7.2.
What does CVE-2026-7819 affect?
CVE-2026-7819 affects pgAdmin 4 and its File Manager feature.
How do I fix CVE-2026-7819?
You can fix CVE-2026-7819 by applying the available patch for pgAdmin 4.
What kind of vulnerability is CVE-2026-7819?
CVE-2026-7819 is a symbolic-link path traversal vulnerability that allows arbitrary file write.
Who can exploit CVE-2026-7819?
An authenticated user can exploit CVE-2026-7819 to manipulate files using symbolic links.