RCE in Pgadmin 4
CVE-2023-5002
A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. Versions of pgAdmin prior to 7.6 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.0 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H.
EPSS exploit prediction
EPSS 0.018, 78.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Pgadmin 4
- Fedoraproject Fedora — versions 37, 38
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 4 other repositories (danielpacak/vulnerable-kubernetes-deployments, J1ezds/Vulnerability-Wiki-page, Threekiii/Awesome-POC, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- RHBZ#2239164 (issue-tracking, Third Party Advisory, Issue Tracking)
- github.com/pgadmin-org/pgadmin4/issues/6763 (Patch, Issue Tracking)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)