CVEspgadmin.orgCVE-2026-116240Published Oct 30, 19:55 · Updated Oct 30, 19:55 UTC
6.5
MediumCVSS 3.1 · from PostgreSQL
CVE-2026-116240

pgAdmin 4: File Manager and storage-path tools act on a different path from the one checked

pgAdmin 4 · Path traversal · CWE-22
AffectedpgAdmin 4
FixUpdate to 9.19 or newer
PublishedOct 30, 19:55 · PostgreSQL
ScoredOct 30 · 6.5 · PostgreSQL
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:07 UTC

What we know

No known exploitation. CISA KEV, checked 22:07 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker needs network access and an account. CVSS: network, low privileges.
A successful attack can read data. CVSS impact.

Description

In server mode pgAdmin 4 validates a path into the user's storage directory with check_access_permission(), which builds the absolute path with get_abs_path(). Several callers then acted on a path they built differently, so the path checked and the path used could name different files: - Opening a file in the Query Tool, the Google client secret and, on Windows, Import/Export Data, Backup, Restore and saving a file joined the path to the storage directory after stripping leading slashes and backslashes. On POSIX a path checked as a name inside storage could become an absolute path once stripped, so any file the pgAdmin account can read could be opened; on Windows a path naming a drive discarded the storage directory, so these could read, or write, outside it. - Listing a folder decoded the path a second time after the check, so a folder named like an encoded "..", which a user can create, listed any directory on the host. - Download, delete, rename and the file-exists check appended the path to the storage directory without a separator, so in a deployment where one user's storage directory name is a prefix of another's, another user's files could be read, deleted or moved; download also checked the path appended to itself. - Creating a folder could create one in another user's directory. The fix makes check_access_permission() return the path it checked and every caller act on that path, decodes folder paths once, and opens, deletes and renames files relative to directories opened from the storage directory without following symbolic links. Desktop mode is not affected. This issue affects pgAdmin 4: before 9.19.

From PostgreSQL

Affected and fixed versions

ProductAffectedFixed inpgAdmin 4before 9.199.19

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/pgadmin-org/pgadmin4/issues/10674 · github.comissue trackinggithub.com/pgadmin-org/pgadmin4/commit/ad6c028cff625a095676065767c7b80219205d28 · github.compatch

Other CVEs in pgAdmin 4

All 55 →
6.5pgAdmin 4: Materialized view refresh redirects its connection through a crafted database name · CVE-2026-116252Oct 304.2pgAdmin 4: A user's other sessions survive a change of their password · CVE-2026-116251Oct 306.5pgAdmin 4: Files opened in a storage directory follow a symbolic link, hard link or FIFO planted after the containment check · CVE-2026-116250Oct 30