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)
EPSS: 0.015 (71.1th percentile) — read the EPSS interpretation.
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.
Affected products
- Pgadmin Pgadmin_4
- Fedoraproject Fedora — versions 37, 38
Weakness classification (CWE)
Public proof-of-concept exploits
References
- patrick@puiterwijk.org (x_refsource_REDHAT, issue-tracking, Third Party Advisory, Issue Tracking)
- patrick@puiterwijk.org (Patch, Issue Tracking)
- patrick@puiterwijk.org (Mailing List)
- patrick@puiterwijk.org (Mailing List)
Frequently asked questions
- What is CVE-2023-5002?
- CVE-2023-5002 is a medium-severity vulnerability in Pgadmin 4, classified under OS Command Injection. CVSS score: 6.0/10. Published 2023-09-22.
- How severe is CVE-2023-5002?
- Medium severity. CVSS v3 base score is 6.0 out of 10.
- Is CVE-2023-5002 known to be exploited?
- 4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.