pgAdmin 4 Path Traversal vulnerability
When run in server mode, pgAdmin 4 allows users to store files on the server under individual storage directories. Files such as SQL scripts may be uploaded through the user interface. The URI to which upload requests are made fails to validate the upload path to prevent path traversal techniques being used to store files outside of the storage directory. A malicious, but authorised and authenticated user can construct an HTTP request using their existing CSRF token and session cookie to manually upload files to any location that the operating system user account under which pgAdmin is running has permission to write.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | pgadmin4 | < 6.7 | 6.7 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-0959
- https://github.com/pgadmin-org/pgadmin4/commit/dccd4f0bbaafa783d9f0360c7592b128d5cc3928
- https://bugzilla.redhat.com/show_bug.cgi?id=2063759
- https://github.com/pgadmin-org/pgadmin4
- https://pypi.org/project/pgadmin4
- https://github.com/advisories/GHSA-cr8c-972v-rmp3
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-22, CWE-434- Platform
- Python (PyPI)
- Package
pgadmin4- Disclosed
- 17.03.2022
- Updated
- 11.10.2026 13:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-729 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-cr8c-972v-rmp3 - CC BY 4.0
Vulnerability history: pgadmin4
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 28
- First → latest
- 03.2022 05.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 6
- High 14
- Medium 8
Disclosures per year
- 2022: 2
- 2023: 3
- 2024: 5
- 2025: 9
- 2026: 9
-
pgAdmin 4 Path Traversal vulnerability this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.