CVE-2022-0959

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.
References
Link Resource
https://bugzilla.redhat.com/show_bug.cgi?id=2063759 Issue Tracking Third Party Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:postgresql:pgadmin_4:*:*:*:*:*:*:*:*

History

27 Jun 2023, 16:39

Type Values Removed Values Added
CWE CWE-22

28 Mar 2022, 13:20

Type Values Removed Values Added
References (MISC) https://bugzilla.redhat.com/show_bug.cgi?id=2063759 - (MISC) https://bugzilla.redhat.com/show_bug.cgi?id=2063759 - Issue Tracking, Third Party Advisory
CVSS v2 : unknown
v3 : unknown
v2 : 3.5
v3 : 6.5
CWE CWE-434
First Time Postgresql
Postgresql pgadmin 4
CPE cpe:2.3:a:postgresql:pgadmin_4:*:*:*:*:*:*:*:*

23 Mar 2022, 20:15

Type Values Removed Values Added
Summary 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. 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.

16 Mar 2022, 15:15

Type Values Removed Values Added
New CVE

Information

Published : 2022-03-16 15:15

Updated : 2023-12-10 14:22


NVD link : CVE-2022-0959

Mitre link : CVE-2022-0959

CVE.ORG link : CVE-2022-0959


JSON object : View

Products Affected

postgresql

  • pgadmin_4
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CWE-434

Unrestricted Upload of File with Dangerous Type