All reports
Medium

pgAdmin 4 Path Traversal vulnerability

Affected versions

Version ranges need review.

Affected versions
<6.7 || =4.20 || =4.22 || =4.23 || =4.24 || =4.25 || =4.26 || =4.27 || =4.28 || =4.29 || =4.30 || =5.0 || =5.1 || =5.2 || =5.3 || =5.4 || =5.5 || =5.6 || =5.7 || =6.2 || =6.3 || =6.4 || =6.5 || =6.6
Fixed version
6.7
Affected versions
< 6.7
Fixed version
6.7

Exploitation

CVE-2022-0959

Probability of exploitation in the next 30 days: 0.97%

FIRST EPSS · 2026-11-24

Description

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.

Links