CVE-2022-4223
pgadmin4 vulnerable to Code Injection
Record summary
CVE-2022-4223 has a selected CVSS score of 8.8 (high); EIP currently links 1 Nuclei template.
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.
Exploitation context
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Apr 14, 2025 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
pgadmin4 | CVE List | pgadmin4 6.17 | affected |
pgadmin4Browse PyPI / pgadmin4 | GitHub Advisory | Before 6.17 · Fixed in 6.17 | affected |
Nuclei templates
1ProjectDiscoveryCRITICALpgAdmin < 6.17 - Unauthenticated Remote Code ExecutionCVSS 9.8
pgAdmin prior to 6.17 contains an insecure HTTP API caused by improper access control, letting unauthenticated users execute arbitrary external utilities via path manipulation, exploit requires no authentication.
Impact
Attackers can execute arbitrary external utilities on the server, potentially leading to remote code execution or system compromise.
Remediation
Update to version 6.17 or later to fix the security issue.
Source: ProjectDiscovery