# CVE-2026-7819: pgAdmin 4: Symbolic-link path traversal in File Manager allows arbitrary file write

- Severity: High 7.2 (CVSS:4.0, scored by PostgreSQL) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/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.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-05-11T14:35:52.747Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-hr4r-fwpv-c95j, PYSEC-2026-2868
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## Description

Symbolic-link path traversal (CWE-61, CWE-22) in pgAdmin 4 File Manager.

check_access_permission used os.path.abspath, which resolves '..' but does not resolve symbolic links, while the subsequent kernel write follows symlinks. An authenticated user could plant a symbolic link inside their own storage directory pointing outside it and induce pgAdmin to write to any path reachable by the pgAdmin process.

Fix switches the access check to os.path.realpath for both source and destination, and adds an _open_upload_target helper that opens the target with O_NOFOLLOW (mode 0o600) to close the leaf-component TOCTOU between the access check and the open. File mode is hardened from 0o644 to 0o600.

This issue affects pgAdmin 4: before 9.15.

(As written by CVE List.)

## Affected

- pgadmin.org pgAdmin 4: before 9.15
- pgadmin4 (PyPI): before 9.15
- pgadmin pgadmin_4: before 9.15

## Every score

- PostgreSQL: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- PostgreSQL: CVSS:4.0 7.2 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/pgadmin-org/pgadmin4/issues/9902> (issue-tracking, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7819> (advisory)
- <https://github.com/pgadmin-org/pgadmin4/commit/435752b83> (web)
- <https://github.com/pgadmin-org/pgadmin4> (package)
- <https://pypi.org/project/pgadmin4> (package)
- <https://github.com/advisories/GHSA-hr4r-fwpv-c95j> (advisory)

## Sources

- CVE List: [CVE-2026-7819](https://www.cve.org/CVERecord?id=CVE-2026-7819), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-hr4r-fwpv-c95j](https://github.com/advisories/GHSA-hr4r-fwpv-c95j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-7819](https://nvd.nist.gov/vuln/detail/CVE-2026-7819), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2868](https://osv.dev/vulnerability/PYSEC-2026-2868), CC-BY-4.0, modified 2026-07-13

---

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