Vulnerability · Published Dec 13, 2022 · Assigned by redhat

CVE-2022-4223

High 8.8

In plain English

A high-severity code injection in pgadmin4. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 80.1% (higher than 99.6% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)80.1%top 0.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Nuclei

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpgadmin46.17GHSA-3v6v-2x6p-32mc
PyPIpgadmin46.17PYSEC-2026-893

Affected products (as reported)

VendorProductVersions
n/a pgadmin4 pgadmin4 6.17

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References