pgadmin4: Unauthenticated remote code execution while validating the binary path
Published Dec 13, 2022
8.8
HIGHCVSS 3.1
EPSS 80.07%
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.
Affected products
- Vendor n/a Product Pgadmin4 Defaultn/a
- Version pgadmin4 6.17StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Pgadmin4 | n/a |
|
Configuration 2
- 37
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
This issue does not affect users running pgAdmin in desktop mode.
References (9)
- https://access.redhat.com/security/cve/CVE-2022-4223 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2151434 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-7489 Advisory
- https://github.com/advisories/GHSA-3v6v-2x6p-32mc Advisory
- https://github.com/pgadmin-org/pgadmin4/issues/5593 Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R5EYTPKHVFSDCETBJI7LBZE4EYHBPN2Q vendor-advisoryMailing List
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R5EYTPKHVFSDCETBJI7LBZE4EYHBPN2Q
- https://nvd.nist.gov/vuln/detail/CVE-2022-4223
- https://www.cve.org/CVERecord?id=CVE-2022-4223
Change history (0)
No recorded changes yet.