CVE-2022-4223

published 13 Dec 2022 · updated 14 Apr 2025

The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external PostgreSQL utilities…

10.0CriticalCVSS 8.8EPSS 80%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 80%. No fixed version is recorded.

The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. The utility is executed by the server to determine what PostgreSQL version it is from. Versions of pgAdmin prior to 6.17 failed to properly secure this API, which could allow an unauthenticated user to call it with a path of their choosing, such as a UNC path to a server they control on a Windows machine. This would cause an appropriately named executable in the target path to be executed by the pgAdmin server.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
=pgadmin4 6.17

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-4223 severity on Zeptric[![CVE-2022-4223](https://zeptric.io/badge/cve/CVE-2022-4223.svg)](https://zeptric.io/cve/CVE-2022-4223)