← Vulnerability feed

Vulnerability record · CVE-2022-4223 · published 13 December 2022

CVE-2022-4223: pgAdmin utility path validation API allows unauthenticated code execution

Pgadmin · Pgadmin 4

pgAdmin versions before 6.17 expose an HTTP API meant to validate the path to external PostgreSQL utilities like pg_dump and pg_restore. The API fails to properly secure the supplied path, so an unauthenticated caller can point it at an arbitrary location, including a UNC path to an attacker-controlled Windows server. The server then executes an appropriately named executable from that path, giving remote code execution on the pgAdmin host.

8.8 CVSS 3.1 High EPSS 80% · top 0.4% CWE-94 · Code injectionCWE-862 · Missing authorization
8.8CVSS 3.1 base score
80%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
4References
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: medium.

high priorityUnauthenticated network-reachable code execution with high EPSS, though it requires user interaction and is not in KEV.

What it is

pgAdmin versions before 6.17 expose an HTTP API meant to validate the path to external PostgreSQL utilities like pg_dump and pg_restore. The API fails to properly secure the supplied path, so an unauthenticated caller can point it at an arbitrary location, including a UNC path to an attacker-controlled Windows server. The server then executes an appropriately named executable from that path, giving remote code execution on the pgAdmin host.

Impact

An attacker can execute arbitrary code with the privileges of the pgAdmin server process. On Windows this can be leveraged to run a malicious executable hosted on a remote share, leading to full compromise of the pgAdmin host and any PostgreSQL credentials it manages.

Attack surface

Reachable over the network through the pgAdmin HTTP API (AV:N, PR:N), but exploitation requires user interaction (UI:R), consistent with the CVSS vector. No authentication is needed to call the vulnerable endpoint.

Exploitation

Not listed in CISA KEV and no ransomware usage is documented, but EPSS is very high (0.80, ~99.6th percentile), indicating elevated likelihood of exploitation activity. Reference tags are only Third Party Advisory and Mailing List, so no public exploit code is confirmed by this record.

What to do

  • Upgrade pgAdmin to 6.17 or later, which fixes the path validation API.
  • If immediate upgrade is not possible, restrict network access to the pgAdmin server and its HTTP API to trusted administrators only.
  • Block outbound SMB/UNC access from the pgAdmin host to prevent loading executables from attacker-controlled shares.
  • Run pgAdmin with least privilege and avoid storing high-value PostgreSQL credentials in the instance.
  • Monitor Fedora package updates for the patched pgAdmin build if installed via distribution packages.

Detection

  • Monitor pgAdmin server logs and process creation for executions of pg_dump, pg_restore or similarly named binaries from unexpected or UNC paths.
  • Alert on HTTP requests to the pgAdmin utility path-validation API from unauthenticated or unusual source addresses.
  • Detect outbound SMB connections from the pgAdmin host to external or untrusted servers.
  • Audit pgAdmin host process trees for child processes spawned by the pgAdmin service that do not match normal administrative activity.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-4223 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2021-42013Apache HTTP Server path traversal and RCE via incomplete fixThe fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside…KEVEPSS 100%analysed9.8CVE-2021-41773Apache HTTP Server 2.4.49 path traversal and RCEA path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like direc…KEVEPSS 100%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed9.8CVE-2020-16846SaltStack Salt API shell injection via crafted web requestsSaltStack Salt through 3002 is vulnerable to OS command injection when the SSH client is enabled and crafted web requests are sent to the Salt API. T…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2022-4223), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.