OS Command Injection in pgAdmin - CVE-2023-5002

 

OS Command Injection in pgAdmin - CVE-2023-5002

Published: October 4, 2023


Vulnerability identifier: #VU81468
CSH Severity: Medium
CVSS v4: 8.5 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-5002
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation in external PostgreSQL utilities such as pg_dump and pg_restore. A remote user can pass specially crafted data via API to the application and execute arbitrary OS commands on the target system.



Affected software

pgAdmin
Fedora
pgadmin4

How to mitigate CVE-2023-5002

Install updates from vendor's website.

pgAdmin - update to 7.7
pgadmin4 - addressed in versions 6.19-2.fc37, 6.21-3.fc38

External References

Related Security Bulletins