SecurityContext

CVE-2026-116240: pgAdmin 4 - Path Traversal

  • Cve: CVE-2026-116240
  • Name: pgAdmin 4 - Path Traversal
  • 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.
  • Impact: Authenticated users can read, write, delete, or move files outside their storage directory, potentially affecting other users' data.
  • Remediation: Upgrade to version 9.19 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_read, file_system_write, data_tampering
  • Requirement type: logged_in
  • Requirements: Attacker must be an authenticated user
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00263
  • Epss percentile: 0.18078
  • Assignee: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
  • Published at: 2026-10-30T20:17:03Z
  • Age in days: 25
  • Modified at: 2026-11-06T17:17:14Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-116240
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

UrlSourceTags
https://github.com/pgadmin-org/pgadmin4/commit/ad6c028cff625a095676065767c7b80219205d28nvdPatch
https://github.com/pgadmin-org/pgadmin4/issues/10674nvdIssue Tracking

Products

ProductAffectedPlatform boundSourcesUrl
pgadmin:pgadmin_4< 9.19nonvd/v1/products/pgadmin/pgadmin_4

Projects

RepositoryLink kindsIndexedUrl
pgadmin-org/pgadmin4commit, fix, issuesyes/v1/repositories/pgadmin-org/pgadmin4

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts