RCE in Pgadmin 4
CVE-2022-4223
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.
Vulnerability class: RCE (Remote Code Execution)
EPSS: 0.801 (99.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
Affected products
- Pgadmin Pgadmin_4
- Fedoraproject Fedora — versions 37
- N/a Pgadmin4 — versions pgadmin4 6.17
Weakness classification (CWE)
Public proof-of-concept exploits
References
- secalert@redhat.com (Third Party Advisory)
- secalert@redhat.com (vendor-advisory, Mailing List)
Frequently asked questions
- What is CVE-2022-4223?
- CVE-2022-4223 is a high-severity vulnerability in Pgadmin 4, classified under Code Injection. CVSS score: 8.8/10. Published 2022-12-13.
- How severe is CVE-2022-4223?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2022-4223 known to be exploited?
- 7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.