CVE-2022-4223
HIGH 8.8CVSS 3.1pgadmin4 vulnerable to Code Injection
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.
- Published
- 13 Dec 2022
- Last modified
- 7 Jul 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-862CWE-94
- Also known as
- GHSA-3v6v-2x6p-32mcPYSEC-2026-893
- Sources
- NVDJSONOSV GHSA-3v6v-2x6p-32mcJSONOSV PYSEC-2026-893JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pgadmin | pgadmin_4cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:* |
< 6.17 | 6.17 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| OSV | PyPI | pgadmin4 | < 6.17 | 6.17 |
References
- https://github.com/pgadmin-org/pgadmin4/issues/5593 · Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R5EYTPKHVFSDCETBJI7LBZE4EYHBPN2Q/ · Mailing List, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-4223 · ADVISORY
- https://github.com/pgadmin-org/pgadmin4 · PACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R5EYTPKHVFSDCETBJI7LBZE4EYHBPN2Q · WEB
- https://pypi.org/project/pgadmin4 · PACKAGE
- https://github.com/advisories/GHSA-3v6v-2x6p-32mc · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 13 Dec 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Dec 2022)