CVE-2022-0959
pgAdmin 4 Path Traversal vulnerability
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.5
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.
- Record
CVE-2022-0959- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - CVSS 2.0
- 3.5 Low
AV:N/AC:M/Au:S/C:N/I:P/A:N - Weakness
- CWE-434, CWE-22
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2022-0959- Weakness
- CWE-434
- Updated
- 2026-11-02
EUVDEUVD-2022-1410 No score
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.
- Record
EUVD-2022-1410- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-cr8c-972v-rmp3
6.5
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.
- Record
GHSA-cr8c-972v-rmp3- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22, CWE-434
- Updated
- 2026-11-02
OSVGHSA-cr8c-972v-rmp3
6.5
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.
- Record
GHSA-cr8c-972v-rmp3- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22, CWE-434
- Updated
- 2026-11-02
OSVPYSEC-2026-729
6.5
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.
- Record
PYSEC-2026-729- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
Show 4 moreShow less
OSV No score
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.
- Record
CVE-2022-0959- Weakness
- CWE-434
- Updated
- 2026-11-02
OSVMGASA-2022-0257 No score
Updated pgadmin4 packages fix security vulnerability
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. (CVE-2022-0959)
In addition, missing requires have been added, file and directory permissions have been corrected. Upstream update check disabled.
- Record
MGASA-2022-0257- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13667-1 No score
pgadmin4-8.2-1.1 on GA media
These are all security issues fixed in the pgadmin4-8.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13667-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:1541-1 No score
Security update for pgadmin4
This update for pgadmin4 fixes the following issues:
- CVE-2022-0959: Fixed an unrestricted file upload (bsc#1197143).
- Record
SUSE-SU-2022:1541-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pgadmin4PyPI |
before 6.7 | 6.7 |
pgadmin4PyPI |
before 6.7, plus listed versions 4.204.224.234.244.25 Show 18 moreShow less4.264.274.284.294.305.05.15.25.35.45.55.65.76.26.36.46.56.6 |
6.7 |
pgadmin4Mageia:8 |
before 4.30-5.mga8 | 4.30-5.mga8 |
pgadmin4SUSE:Linux Enterprise Module for Server Applications 15 SP3 |
before 4.30-150300.3.3.1 | 4.30-150300.3.3.1 |
pgadmin4openSUSE:Leap 15.3 |
before 4.30-150300.3.3.1 | 4.30-150300.3.3.1 |
pgadmin4openSUSE:Leap 15.4 |
before 4.30-150300.3.3.1 | 4.30-150300.3.3.1 |
pgadmin4openSUSE:Tumbleweed From an advisory covering 3 CVEs |
before 8.2-1.1 | 8.2-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-0959 is a medium vulnerability (CVSS 6.5) in Open Source Pgadmin, published March 16, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.97%, the 62nd percentile. Fixed in pgadmin4 6.7.
References
bugzilla.redhat.com/show_bug.cgi?id=2063759
nvd.nist.gov/vuln/detail/CVE-2022-0959
github.com/pgadmin-org/pgadmin4/commit/dccd4f0bbaafa783d9f0360c7592b128d5cc3928
github.com/advisories/GHSA-cr8c-972v-rmp3
github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0959.json
github.com/pgadmin-org/pgadmin4
Show 9 moreShow less
advisories.mageia.org/MGASA-2022-0257.html
bugs.mageia.org/show_bug.cgi?id=30385
lists.opensuse.org/archives/list/[email protected]/thread/JSL3A3EFXELNQREOPMKA3CGCYH5WGQXK
pypi.org/project/pgadmin4
suse.com/support/update/announcement/2022/suse-su-20221541-1
bugzilla.suse.com/1197143
suse.com/security/cve/CVE-2022-0959
suse.com/security/cve/CVE-2023-0241
suse.com/security/cve/CVE-2023-22298