# CVE-2026-116249: pgAdmin 4: Connection file paths and parameter keys escape the user's storage directory

- Severity: High 7.2 (CVSS:4.0, scored by PostgreSQL) `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:L/SC:H/SI:H/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-10-30T19:55:18.121Z
- Modified: 2026-11-09T15:37:32.403Z
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## Description

In server mode pgAdmin 4 resolves a server's password file, SSL certificate, key, CRL and SSH tunnel identity file relative to the user's storage directory, but get_complete_file_path() only stripped leading slashes before joining the two. A path such as "../<another user>/.pgpass", set through the server dialog, the REST API or a servers.json import, therefore named another user's file, and connecting used that user's saved passwords, client certificate or SSH key. The sslkeylogfile connection parameter was passed to libpq unchanged, so a path outside storage let libpq create or append a file as the account running pgAdmin.

make_conninfo() also quoted connection parameter values but not their names, so a crafted parameter name could smuggle additional keyword=value pairs past these checks.

The fix requires the resolved path, with symbolic links followed, to stay inside the user's storage directory or the named shared storage directory, confines sslkeylogfile the same way, and accepts only exact libpq keywords as connection parameter names. A refused path or keyword is reported instead of letting libpq fall back to a default.

This issue affects pgAdmin 4: before 9.19.

(As written by CVE List.)

## Affected

- pgadmin.org pgAdmin 4: before 9.19
- pgadmin pgadmin_4: before 9.19

## Every score

- PostgreSQL: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L`
- PostgreSQL: CVSS:4.0 7.2 High `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:L/SC:H/SI:H/SA:N`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`

## References

- <https://github.com/pgadmin-org/pgadmin4/issues/10650> (issue-tracking, patch)
- <https://github.com/pgadmin-org/pgadmin4/commit/2afe505ef4a31591796449d54ab1604355ff06c2> (patch)

## Sources

- CVE List: [CVE-2026-116249](https://www.cve.org/CVERecord?id=CVE-2026-116249), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-116249](https://nvd.nist.gov/vuln/detail/CVE-2026-116249), Public domain, modified 2026-11-09

---

Page: https://cve.day/CVE-2026-116249 · Whole record: https://cve.day/CVE-2026-116249.json · Rebuilt by cve.day 2026-11-25T22:59:48.012Z
