Every CVE Search/ Get API key

CVE-2022-0959

pgAdmin 4 Path Traversal vulnerability

6.5 MediumFix available

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

0.97%Up 0.1 points since Mar 17, 2022
90%50%10%1%

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 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
CVSS 2.0
3.5 LowAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
pgadmin4
PyPI
before 6.7
6.7
pgadmin4
PyPI
before 6.7, plus listed versions
4.204.224.234.244.25
Show 18 moreShow less
4.264.274.284.294.305.05.15.25.35.45.55.65.76.26.36.46.56.6
6.7
pgadmin4
Mageia:8
before 4.30-5.mga8
4.30-5.mga8
pgadmin4
SUSE:Linux Enterprise Module for Server Applications 15 SP3
before 4.30-150300.3.3.1
4.30-150300.3.3.1
pgadmin4
openSUSE:Leap 15.3
before 4.30-150300.3.3.1
4.30-150300.3.3.1
pgadmin4
openSUSE:Leap 15.4
before 4.30-150300.3.3.1
4.30-150300.3.3.1
pgadmin4
openSUSE:Tumbleweed
From an advisory covering 3 CVEs
before 8.2-1.1
8.2-1.1

History

History
RecordedChangedSources
affected, facts
aliases, productsEUVD
first indexedCVE 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

Show 9 moreShow less
MoveEnter Open