CVE-2022-4223

pgadmin4: Unauthenticated remote code execution while validating the binary path

Published Dec 13, 2022 CVSS 3.1 · 8.8 High EPSS 80.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3v6v-2x6p-32mc pgadmin4 vulnerable to Code Injection
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Pgadmin
Pgadmin pgadmin 4
CPEs cpe:2.3:a:postgresql:pgadmin:*:*:*:*:*:*:*:* cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*
Vendors & Products Postgresql
Postgresql pgadmin
Pgadmin
Pgadmin pgadmin 4
Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Apr 14, 2025, 6:12 PM
Reserved
Nov 30, 2022, 12:00 AM
Status
Modified
Published
Dec 13, 2022, 4:15 PM
Modified
Jun 17, 2026, 5:20 AM
Severity
Important
Public date
Dec 2, 2022, 12:00 AM