CVE-2026-116240
Last modified
CVE-2026-116240 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| pgadmin.org | pgAdmin 4 | < 9.19 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-116240?
How severe is CVE-2026-116240?
How do I fix CVE-2026-116240?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-116235A flaw has been found in Oray Pugongying X5 Pro 7.6.1. Affec…9.1
- CVE-2026-116236A vulnerability has been found in Oray Pugongying X5 Pro 7.6…7.2
- CVE-2026-116237A vulnerability was found in Oray Pugongying X5 Pro 7.6.1. T…8.4
- CVE-2026-116238In server mode pgAdmin 4 locks an internal account after MAX…8.1
- CVE-2026-116239In server mode pgAdmin 4 keeps an account per authentication…8.5
- CVE-2026-11624The Model Context Protocol has a security warning advising s…9.4
- CVE-2026-116241pgAdmin 4's Import/Export Data tool wraps a user's query exp…9.9
- CVE-2026-116242pgAdmin 4 opens SSH tunnels with the sshtunnel library but g…8.2
- CVE-2026-116243pgAdmin 4 runs pg_dump, pg_restore, pg_dumpall and psql from…7.5
- CVE-2026-116244When a pgAdmin 4 connection was not meant to use a Kerberos …8.2
- CVE-2026-116245libpq looks a connection service up in the service file of t…8.2
- CVE-2026-116246To pass a server's password to psql and to the utilities pgA…6.5
Are you affected by CVE-2026-116240?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
