Skip to content
RedCVE

CVE-2026-116240Pgadmin 4 path traversal

pgadminpgadmin.orgPublished:

CVSS score

7.1

High

CVSS 4.0 from f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Exploit probability (EPSS)

0.26%

0.26% chance of exploitation in the next 30 days, higher than 18.2% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Pgadmin 4 and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Pgadmin 4 to 9.19 or later.
  3. If you can't update right away

    Apply the workaround or mitigation in the vendor's advisory until you can update:

  4. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected products

Affected productsVersions
pgadmin Pgadmin 4< 9.19
pgadmin.org PgAdmin 4< 9.19

Weakness

  • CWE-22 path traversal
  • CWE-367 time-of-check time-of-use race condition

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-116240 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.3% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-116240?

CVE-2026-116240 has a CVSS 4.0 base score of 7.1 (high).

Which versions are affected?

Pgadmin Pgadmin 4 (< 9.19), Pgadmin Org PgAdmin 4 (< 9.19)

Is there a patch for CVE-2026-116240?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.