{"id":"CVE-2026-116250","summary":"pgAdmin 4: Files opened in a storage directory follow a symbolic link, hard link or FIFO planted after the containment check","details":"In server mode pgAdmin 4 validates a path a user gives for a file in their storage directory with check_access_permission() and then opened it by name. Several places opened it with a plain open() or handed the path to a utility that opened it later: the servers.json export and import and the import file listing, and the files given to pg_dump, pg_dumpall, pg_restore and psql by Backup, Restore and Import/Export Data. A symbolic link swapped in at the file or at any parent directory between the check and the open redirected the operation outside the storage directory, so a file could be written, overwritten or read, or loaded into a table, as the operating-system account running pgAdmin. A hard link to an outside file, which O_NOFOLLOW does not detect, and a FIFO, which could hang a request, had the same effect. CVE-2026-86861 fixed this for the File Manager's save_file; these were the remaining paths.\n\nExploitation requires creating such a link or FIFO inside the user's storage directory. pgAdmin offers no way to do so, and the per-user storage directories belong to the pgAdmin account, so this requires write access to the storage backend as a different operating-system user, for example a shared or network-mounted storage directory, and winning the race.\n\nThe fix opens each file by walking down from the storage directory one component at a time with O_NOFOLLOW, accepting only a regular file with one link, and passes the utilities the open descriptor (/dev/fd/N) on Linux. Error messages no longer include the server path.\n\nThis issue affects pgAdmin 4: before 9.19.","modified":"2026-11-11T02:48:42.031935342Z","published":"2026-10-30T19:55:18.713Z","database_specific":{"cna_assigner":"PostgreSQL","cwe_ids":["CWE-367","CWE-59"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116250.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116250.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116250"},{"type":"REPORT","url":"https://github.com/pgadmin-org/pgadmin4/issues/10647"},{"type":"FIX","url":"https://github.com/pgadmin-org/pgadmin4/commit/730d1e783c339ec696a1f77f2eee6f4b52cb6c37"},{"type":"FIX","url":"https://github.com/pgadmin-org/pgadmin4/commit/99f5606e2ebc7c94c7acdbab877ce7de54bfc756"},{"type":"FIX","url":"https://github.com/pgadmin-org/pgadmin4/commit/c4321b9968342716f34bc5f10de6cac3c0567e68"},{"type":"PACKAGE","url":"https://github.com/pgadmin-org/pgadmin4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pgadmin-org/pgadmin4","events":[{"introduced":"0"},{"fixed":"062099ae5b927fc2bb6f1c1f198712e1f8bd04e6"},{"fixed":"730d1e783c339ec696a1f77f2eee6f4b52cb6c37"},{"fixed":"99f5606e2ebc7c94c7acdbab877ce7de54bfc756"},{"fixed":"c4321b9968342716f34bc5f10de6cac3c0567e68"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"9.19"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:*:*:*"},{"range":[{"fixed":"730d1e783c339ec696a1f77f2eee6f4b52cb6c37"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"99f5606e2ebc7c94c7acdbab877ce7de54bfc756"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"c4321b9968342716f34bc5f10de6cac3c0567e68"}]}]}}],"versions":["REL-9_18","REL-9_17","REL-9_16","REL-9_15","REL-9_14","REL-9_13","REL-9_12","REL-9_11","REL-9_10","REL-9_9","REL-9_8","REL-9_7","REL-9_6","REL-9_5","REL-9_4","REL-9_3","REL-9_2","REL-9_1","REL-9_0","REL-8_14","REL-8_13","REL-8_12","REL-8_11","REL-8_10","REL-8_9","REL-8_8","REL-8_7","REL-8_6","REL-8_5","REL-8_4","REL-8_3","REL-8_2","REL-8_1","REL-8_0","REL-7_8","REL-7_7","REL-7_6","REL-7_5","REL-7_4","REL-7_3","REL-7_2","REL-7_1","REL-7_0","REL-6_21","REL-6_20","REL-6_19","REL-6_18","REL-6_17","REL-6_16","REL-6_15","REL-6_14","REL-6_13","REL-6_12","REL-6_11","REL-6_10","REL-6_9","REL-6_8","REL-6_7","REL-6_6","REL-6_5","REL-6_4","REL-6_3","REL-6_2","REL-6_1","REL-6_0","REL-5_7","REL-5_6","REL-5_5","REL-5_4","REL-5_3","REL-5_2","REL-5_1","REL-5_0","REL-4_30","REL-4_29","REL-4_28","REL-4_27","REL-4_26","REL-4_25","REL-4_24","REL-4_23","REL-4_22","REL-4_21","REL-4_20","REL-4_19","REL-4_18","REL-4_17","REL-4_16","REL-4_15","REL-4_14","REL-4_13","REL-4_12","REL-4_11","REL-4_10","REL-4_9","REL-4_8","REL-4_7","REL-4_6","REL-4_5","REL-4_4","REL-4_3","REL-4_2","REL-4_1","REL-4_0","REL-3_6","REL-3_5","REL-3_4","REL-3_3","REL-3_2","REL-3_1","REL-3_0","REL-2_1","REL-2_0","REL-2_0-RC2","REL-2_0-RC1","REL-1_6","REL-1_5","REL-1_4","REL-1_3","REL-1_2","REL-1_1","REL-1_0","REL-1_0-RC1","REL-1_0-BETA4","REL-1_0-BETA3","REL-1_0-BETA2","REL-1_0-BETA1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116250.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"}]}