---
id: CVE-2022-0959
aliases:
  - GHSA-cr8c-972v-rmp3
  - PYSEC-2026-729
title: pgAdmin 4 Path Traversal vulnerability
summary: pgAdmin 4 Path Traversal vulnerability
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'
vendor: pgadmin4
product: pgadmin4
ecosystem: pip
affected:
  - pgadmin4 < 6.7
patched:
  - pgadmin4 6.7
published: '2022-03-17'
updated: '2026-07-06'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-cr8c-972v-rmp3'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-0959'
  - url: >-
      https://github.com/pgadmin-org/pgadmin4/commit/dccd4f0bbaafa783d9f0360c7592b128d5cc3928
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2063759'
  - url: 'https://github.com/pgadmin-org/pgadmin4'
tags:
  - osv
  - pip
epss: 0.00968
epssPercentile: 0.60366
ingestedAt: '2026-07-08T18:25:48.556Z'
---

## Overview

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 packages

- `pgadmin4 < 6.7`

## Remediation

Upgrade to a patched release:

- `pgadmin4 6.7`
